@m2collective/scss-function-em
v1.1.0
Published
A package for integrating the px to em conversion function.
Downloads
277
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 @m2collective/scss-function-emUsage
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;
}Changing the namespace
You can change the namespace during function import and use the function with a different namespace:
@use "@m2collective/scss-function-em" as function;Changing the variables
You can redefine the default values for the specified variables when importing the function:
@use "@m2collective/scss-function-em" as * with (
$default: 16,
);License
The MIT License (MIT). Please see the License file for more information.
