2 ms·
We kind of had variables with preprocessing before. Or a simple sed ‘s/str/replace’. But true support is convenient. One of the best places to write CSS is the
by tambourine_man 4y ago
We kind of had variables with preprocessing before. Or a simple sed ‘s/str/replace’.
But true support is convenient. One of the best places to write CSS is the browser’s dev tools. Having CSS variables work there is awesome.
If it can be parsed almost as fast, I say go for it.
- account42 4y agoThose are constants. CSS variables are more powerful than that since they can be changed at runtime which allows e.g. minesweeper in pure HTML and CSS: https://github.com/propjockey/css-sweeper https://github.com/propjockey/css-sweeper