let vs. const
There are multiple ways to declare variables in JavaScript. We had var
, and while that still works like it always has, it is generally said that let
and const
are replacements to the point we rarely (if ever) need …
There are multiple ways to declare variables in JavaScript. We had var
, and while that still works like it always has, it is generally said that let
and const
are replacements to the point we rarely (if ever) need …
…What naming scheme do you use for color variables?
Have you succeeded at writing CSS that uses color variables in a manner agnostic to the colors they represent?
I’ve tried all of the following, and I have yet to succeed
Variables are one of the major reasons CSS preprocessors exist at all. The ability to set a variable for something like a color, use that variable throughout the CSS you write, and know that it will be consistent, DRY, and …