css array of colors

How To Define An Array Of Colors With CSS

Temani Afif @ smashingmagazine.com • 2 years ago

In the creative CSS, but I’m not sure how useful department, here is an article showing how to create an array of colors using only modern CSS. I suspect you’d want to combine this with some JavaScript to be able to pick colors, or allow the user to pick colors, which seems to limit its usefulness on its own.

View Content