Generating shades of color using CSS variables

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/

Hi 👋
I’m Andy, a freelance web designer

I’m currently looking to book web design, training and consultancy projects from November 2019, onwards.

Hire me