You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Chromatic is a node-sass wrapper around chroma.js with a few Sass-specific additions.
Here are a few things Chromatic can do for you:
Create perceptually uniform gradients using the conventional CSS3 linear-gradient syntax
Procedurally generate aesthetically pleasing color scales
Define colors in a wide range of color spaces
Analyze and manipulate colors
Because of it's ability to support the LAB color space, Chromatic's color manipulation abilities can act as drop-in improvements for Sass's native color manipulation functions such as darken, saturate, and mix.
Install
Install chromatic via NPM.
npm install chromatic-sass
Usage
To use Chromatic, provide it in your node-sass configuration.
Chromatic returns an object defining custom functions that can be used with any node-sass build system. To provide your own custom javascript Sass functions alongside chromatic, merge chromatic with your custom functions object before providing it in your node-sass configuration.