Skip to content

bu0nq/scss-function-em

Repository files navigation

SCSS Function Em

A package for integrating the px to em conversion function.

npm npm

Documentation: EN | RU


Installation

You can install the package automatically using NPM:

npm i @bu0nq/scss-function-em

Usage

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,
);

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages