postcss-extract-vars

0.0.1 • Public • Published

postcss-extract-vars Build Status

PostCSS postcss-extract-vars Extracts the custom variables set to root scope and stores it in the file provided.

:root {
    --color-primary: red;
    --color-secondary: blue;
}
.button{
 
}
.others{
 
}
:root {
    --color-primary: red;
    --color-secondary: blue;
}

Usage

postcss([ require('postcss-extract-vars') ])

Options

{
    file: <PATH TO OUTPUT FILE>
}

See PostCSS docs for examples for your environment.

Package Sidebar

Install

npm i postcss-extract-vars

Weekly Downloads

0

Version

0.0.1

License

MIT

Unpacked Size

9.54 kB

Total Files

12

Last publish

Collaborators

  • archana-s