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