Skip to content

m2collective/scss-function-em

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SCSS Function Em

A package for integrating the px to em conversion function.

npm


Installation

You can install the package automatically using NPM:

npm i @m2collective/scss-function-em

Usage

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.

About

A package for integrating the px to em conversion function.

Topics

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors

Languages