4 ms·
Who's to say you can't use Sass variables _and_ CSS variables? My current shop is moving to switch our sass color function `color.get()` to either dump hardcod
by desert_boi 6y ago
Who's to say you can't use Sass variables _and_ CSS variables?
My current shop is moving to switch our sass color function `color.get()` to either dump hardcoded hex or a css variable usage based on a param. It currently just does hex.
- runarberg 6y agoWell, it was a response to the parents claim that “[w]riting actual CSS is the waste of time”. You might be happy to learn that CSS color module 4[1] will add `lab()` and `lch()` color definitions and CSS color module 5[2] will add the `color-adjust` function as well as other goodies. 1: https://www.w3.org/TR/css-color-4/ https://www.w3.org/TR/css-color-4/ 1: https://www.w3.org/TR/css-color-5/ https://www.w3.org/TR/css-color-5/