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