4 ms·
I'm a designer and I just finished moving our product form CSS to Less.js (server-side preprocessed). This allowed me to define variables such as @baseColor, @b
by micheljansen 15y ago
I'm a designer and I just finished moving our product form CSS to Less.js (server-side preprocessed). This allowed me to define variables such as @baseColor, @buttonColor etc. so that the developers working on the project can use those instead of copy/pasting colours from other places and making a huge mess.
Variables are not logic. Once CSS seizes being declarative and starts becoming a programming language, I think we might start seeing problems, but the author is not suggesting adding an if-statement to CSS (one might argue that media queries are already conditional enough).