@bu0nq/scss-function-round
v2.0.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 @bu0nq/scss-function-roundUsage
To use the package, import it into your project:
@use "@bu0nq/scss-function-round" as *;
.demo {
font-size: round(16.4px);
}Changing the namespace
You can change the namespace during function import and use the function with a different namespace:
@use "@bu0nq/scss-function-round" as function;
.demo {
font-size: function.round(16.4px);
}Changing the variables
You can redefine the default values for the specified variables when importing the function:
@use "@bu0nq/scss-function-round" as * with (
$decimals: 0,
);