postcss-forced-variables
v1.0.2
Published
PostCSS plugin to force variable usage on specific rules
Maintainers
Readme
The plugins purpose is to help enforce more consistent SASS-like variable usage in stylesheets.
E.g 1) The following will generate a warning stating that a variable could be used here.
ruleset : ['color'], variables : {$white : #fff'} used to process the css:
body {
color: #fff;
}
E.g. 2) The following will throw an error stating that a variable should be used here.
ruleset : ['color'], variables : {$white : #fff'} used to process the css:
body{
color : red; }
variables : { '$variableName' : 'variableValue}
}
Setup is complete. Further details can be seen in gulp test examples.
Feel free to e-mail me at [email protected] with any suggestions or questions!
