@sass-fairy/color
Provides extended functionality for generating new colors from existing colors and building color themes in Sass.
Install
Requires
- Dart Sass:
^1.52.0
Install the package:
npm install @sass-fairy/color@next
Use the package like any other Sass module:
@use '@sass-fairy/color';
Configure Sass options to use the functions provided by this package:
const sass = require('sass');
const ColorFunctions = require('@sass-fairy/color');
sass.render({
file: scss_filename,
includePaths: ['node_modules'],
functions: {
...ColorFunctions
}
});
Documentation
See sass-fairy.com/next/api/color for more information about this package.