@m2collective/scss-function-round
v1.1.0
Published
A package for integrating the rounding function of numeric values.
Maintainers
Readme
SCSS Function Round
A package for integrating the rounding function of numeric values.
Installation
You can install the package automatically using NPM:
npm i @m2collective/scss-function-roundUsage
To use the package, import it into your project:
@use "@m2collective/scss-function-round" as *;
.demo {
font-size: round(16.4px);
}
// Return
.demo {
font-size: 16px;
}Changing the namespace
You can change the namespace during function import and use the function with a different namespace:
@use "@m2collective/scss-function-round" as function;Changing the variables
You can redefine the default values for the specified variables when importing the function:
@use "@m2collective/scss-function-round" as * with (
$decimals: 1,
);License
The MIT License (MIT). Please see the License file for more information.
