0.0.4 • Published 5 years ago
sass-json-theme-one v0.0.4
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:
@import '~sass-json-theme-one/theme'
In js
files import the theme as follows:
import theme from 'sass-json-theme-one' // import from index.js
/* OR */
import theme from 'sass-json-theme-one/theme' // import from theme.json