@m2collective/scss-function-rem
v1.1.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 @m2collective/scss-function-remUsage
To use the package, import it into your project:
@use "@m2collective/scss-function-rem" as *;
.demo {
font-size: rem(16px);
}
// Return
.demo {
font-size: 1rem;
}Changing the namespace
You can change the namespace during function import and use the function with a different namespace:
@use "@m2collective/scss-function-rem" as function;Changing the variables
You can redefine the default values for the specified variables when importing the function:
@use "@m2collective/scss-function-rem" as * with (
$default: 16,
);License
The MIT License (MIT). Please see the License file for more information.
