How to clamp the lightness of a relative color in CSS (opens in new tab)
From Angelika.me: Let's say we have a color in a CSS variable and want to modify its lightness, but only if it's too dark or too light.
Read the original articleFrom Angelika.me: Let's say we have a color in a CSS variable and want to modify its lightness, but only if it's too dark or too light.
Read the original article