Socket
Book a DemoInstallSign in
Socket

postcss-extract-vars

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-extract-vars

PostCSS plugin PLUGIN_DESC

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

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.

Keywords

postcss

FAQs

Package last updated on 16 Feb 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts