0.1.0 • Published 9 years ago
sass-vars v0.1.0
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.
0.1.0
9 years ago