Provides extended functionality for generating new colors from existing colors and building color themes in Sass.
- Dart Sass:
>=1.79.0
Install the package:
npm install @sass-fairy/color
Use the package like any other Sass module:
@use '@sass-fairy/color';
Depending on your setup, you may need to configure node_modules
as include path:
const sass = require('sass');
sass.compile(filePath, {
loadPaths: ['node_modules']
});
See sass-fairy.com/api/color for more information about this package.