A package for integrating the px to em conversion function.
You can install the package automatically using NPM:
npm i @m2collective/scss-function-em
To use the package, import it into your project:
@use "@m2collective/scss-function-em" as *;
.demo {
font-size: em(16px);
}
// Return
.demo {
font-size: 1em;
}You can change the namespace during function import and use the function with a different namespace:
@use "@m2collective/scss-function-em" as function;You can redefine the default values for the specified variables when importing the function:
@use "@m2collective/scss-function-em" as * with (
$default: 16,
);The MIT License (MIT). Please see the License file for more information.