Generating shades of color using CSS variables

Andy Bell

A really handy trick by @jimniels that uses comma separated RGB values to give you the capability of creating color shades, using CSS Custom Properties.

I love a simple, smart solution like this.

https://blog.jim-nielsen.com/2019/generating-shades-of-color-using-css-variables/