3 ms·
Is there a css3 variables compiler/processor/translator to plain css without variables? It can be a copy-paste tool on the internet or whatever, no preprocesso
by ino 11y ago
Is there a css3 variables compiler/processor/translator to plain css without variables?
It can be a copy-paste tool on the internet or whatever, no preprocessor or build tools required. You work directly with styles.css3 in the browser and when you're done you transform it to old style without variables, so it works in older browsers.
That's what I wanted to do last week but as I couldn't find such a tool, at the end I did a search/replace. It was a small project obviously.
- cobalt 11y agoi think that is what postcss does
- floatboth 11y agoPostCSS parses CSS, runs plugins and outputs CSS. Yep, of course there is a plugin that does variables! And the "Myth" tool, mentioned in a comment here, is just a pack of PostCSS plugins. And the OP uses PostCSS. Apparently, a lot of people here didn't read that part...
- jack_jennings 11y agoThis might be what you're looking for: https://github.com/segmentio/myth https://github.com/segmentio/myth
- ino 11y agoThanks, this looks good!