postcss-rename
postcss-rename copied to clipboard
css variables renaming
I've always wished Closure Stylesheets would have such a feature – it could rename css variables and emit it in a call goog.setCssNameMapping
just like other class names, so that one can modify its value in JS via something like element.style.setProperty(goog.getCssName("--my-variable"), "#fff")
. Would such a feature be in the scope of this project?
In principle I could see this supporting something like that