sass-vars

0.1.0 • Public • Published

sass-vars

Convert between json, scss, and plain javascript objects. Forks the parseJson function from node-sass-import-once. If options.unquoteColors is set to true, the color values in the sass variable will be unquoted so they can be used properly in your stylesheets.

Caution: this module has not been properly tested yet. Use at your own risks.

Features

  • parses Yaml buffers/strings
  • parses JSON buffers/strings
  • parses plain javascript literals and hashes
  • unquote color values (hex, rgb, rgba, hsl, hsla, named CSS colors)

Coming Soon

  • unquote length values (px, em, rem, mm, cm, ...)
  • unquote time values (ms, s)

if options.unquoteLengths is set to true, the color values in the sass variable will be unquoted so they can be used properly in your stylesheets.

Package Sidebar

Install

npm i sass-vars

Weekly Downloads

2

Version

0.1.0

License

ISC

Last publish

Collaborators

  • yoannisj