A package for integrating the px to em conversion function.
You can install the package automatically using NPM:
npm i @bu0nq/scss-function-em
To use the package, import it into your project:
@use "@bu0nq/scss-function-em" as *;
.demo {
font-size: em(16px);
}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);
}You can redefine the default values for the specified variables when importing the function:
@use "@bu0nq/scss-function-em" as * with (
$baseline: 16,
);