postcss-ms-unit

0.0.2 • Public • Published

PostCSS Ms Unit Build Status

PostCSS plugin to add modular scale unit.

.foo {
    font-size: 1ms;
}
.foo {
    font-size: 19.2px;
}

Usage

postcss([ require('postcss-ms-unit') ])

You can also declare the ratios in root like so

:root {
    --ms-base: 16;
    --ms-base: 1.2;
}

See PostCSS docs for examples for your environment.

/postcss-ms-unit/

    Package Sidebar

    Install

    npm i postcss-ms-unit

    Weekly Downloads

    543

    Version

    0.0.2

    License

    MIT

    Last publish

    Collaborators

    • jrmd