You can’t do this in CSS. Preprocessors like SASS have had an existing solution
Jeez, what a hit job. Let me try and balance the scales here.
Joshua Comeau
121

What’s wrong with postcss-color-function? It works fine and in future you’ll be able to get rid of it and directly use the CSS syntax natively.

Show your support

Clapping shows how much you appreciated Federico Zivolo’s story.