# @ds-pack/themer

> A theme builder utility for constructing css-in-js theme objects.

Latest version **0.0.1** (published 2021-01-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install @ds-pack/themer
pnpm add @ds-pack/themer
yarn add @ds-pack/themer
bun add @ds-pack/themer
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2021-01-11 |
| First published | 2021-01-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 14.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Matt Hamlin |
| Maintainers | matthamlin |

## Links

- npm: https://www.npmjs.com/package/@ds-pack/themer
- Repository: git@github.com:ds-pack/themer
- npm.io page: https://npm.io/package/@ds-pack/themer

## Recent versions

- 0.0.1 (latest) — 2021-01-11

## README

# Themer

A theme builder utility for constructing css-in-js theme objects.

## Installation:

```sh
yarn add @ds-pack/themer
```

## Usage:

```ts
import themer from '@ds-pack/themer'

let baseTheme = {
  colors: {
    primary: '$green.3',
    green: ['greenyellow', 'lawngreen', 'limegreen', 'mediumspringgreen'],
  },
}

let theme = themer(baseTheme)

// theme === {
//   colors: {
//     primary: 'mediumspringgreen',
//     green: [
//       'greenyellow',
//       'lawngreen',
//       'limegreen',
//       'mediumspringgreen'
//     ]
//   }
// }
```

## Background:

See my
[blog post on computed theme](https://matthamlin.me/posts/2021/january/computed-theme).

---
_Source: https://npm.io/package/@ds-pack/themer · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
