Skip to content

Transform JSON into SASS. Share code between SASS and JS.

Notifications You must be signed in to change notification settings

natalan/sass-theme-json

Repository files navigation

SASS theme from JSON

Transform JSON into SASS.

Use it to share theme colors stored in JSON between JS and SCSS files.

Inspired by json-sass module that is no longer maintained.

Installation

Requires Node v16 or above.

npm install sass-theme-json --save

Usage

sass-theme-json -i colors.json -o colors.scss -p '$colors: ' 

License

MIT

Andrei Zharov

About

Transform JSON into SASS. Share code between SASS and JS.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •