# sass-json-theme-one

> Testing ways to share variables between JavaScript and SASS in a maintainable way.

Latest version **0.0.4** (published 2018-12-02) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install sass-json-theme-one
pnpm add sass-json-theme-one
yarn add sass-json-theme-one
bun add sass-json-theme-one
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.0.4 |
| Published | 2018-12-02 |
| First published | 2018-12-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Matthias Margot |
| Maintainers | matthiasmargot |

## Links

- npm: https://www.npmjs.com/package/sass-json-theme-one
- npm.io page: https://npm.io/package/sass-json-theme-one

## Recent versions

- 0.0.4 (latest) — 2018-12-02
- 0.0.3 — 2018-12-02
- 0.0.2 — 2018-12-02
- 0.0.1 — 2018-12-02
- 0.0.0 — 2018-12-02

## README

Testing ways to share variables between JavaScript and SASS in a maintainable way.

`theme.json` is supposed to be used as the single source of truth in this project.
`scss.scss` is generated from `theme.json` by running the npm script `build`.

The npm script `release` runs the build script and publishes the package to npm after that.

In `scss` files import the theme as follows:
```scss
@import '~sass-json-theme-one/theme'
```

In `js` files import the theme as follows:

```js
import theme from 'sass-json-theme-one' // import from index.js
/* OR */
import theme from 'sass-json-theme-one/theme' // import from theme.json
```

---
_Source: https://npm.io/package/sass-json-theme-one · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
