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.

Hi 👋
I’m Andy, a freelance web designer

I’m not currently booking new projects, but you can support my work by buying “Every Layout”.

Buy Every Layout