stylecow-plugin-rem

5.0.0 • Public • Published

stylecow plugin rem

Build Status

Stylecow plugin to add a fallback in pixels for browsers not supporting rem values. More info about rem

You write:

p {
    font-size: 2rem;
}

And stylecow converts to:

p {
    font-size: 32px;
    font-size: 2rem;
}

To change the default value of rem (16px) just create a font-size declaration in a :root or html rule:

:root {
    font-size: 0.5em;
}
p {
    font-size: 2rem;
}

becomes to:

:root {
    font-size: 0.5em;
}
p {
    font-size: 16px;
    font-size: 2rem;
}

More demos in the tests folder

Readme

Keywords

none

Package Sidebar

Install

npm i stylecow-plugin-rem

Weekly Downloads

0

Version

5.0.0

License

MIT

Last publish

Collaborators

  • oscarotero