28-07-2023 12:00 via smashingmagazine.com

How To Define An Array Of Colors With CSS

CSS is mainly known as a language based on a set of property-value pairs. You select an element, define the properties, and write styles for it. There’s nothing wrong with this approach, but CSS has evolved a lot recently, and we now have more robust features, like variables, math formulas, conditional logic, and a bunch of new pseudo selectors, just to name a few.
What if I tell you we can also use CSS to create an array? More precisely, we can create an array of colors. Don’t try t
Read more »