postcss-supported-variables
PostCSS Supported Variables supports your CSS variables with native CSS support API. It gives you a supported and unsupported scope for each variable you used.
Example
/* input.css */ /* output.css */ @) @)
Usage
Install PostCSS Supported Variables on your project.
# NPM npm install postcss-supported-variables --save-dev # Yarn yarn add postcss-supported-variables --dev
Use it to process your css
const inputCSS = const supportVariables = ; supportVariables;
Or use it as a PostCSS plugin
const input = ;const postcss = ;const supportVariables = ; ;
Or with config file
// postcss.config.jsmoduleexports = plugins: