@bu0nq/scss-function-rem
v2.0.0
Published
A package for integrating the px to rem conversion function.
Maintainers
Readme
SCSS Function Rem
A package for integrating the px to rem conversion function.
Installation
You can install the package automatically using NPM:
npm i @bu0nq/scss-function-remUsage
To use the package, import it into your project:
@use "@bu0nq/scss-function-rem" as *;
.demo {
font-size: rem(16px);
}Changing the namespace
You can change the namespace during function import and use the function with a different namespace:
@use "@bu0nq/scss-function-rem" as function;
.demo {
font-size: function.rem(16px);
}Changing the variables
You can redefine the default values for the specified variables when importing the function:
@use "@bu0nq/scss-function-rem" as * with (
$baseline: 16,
);