Thinking on ways to solve relative color
In this GUI Challenge, I show you how to use CSS RCS (relative color syntax) for lightening, desaturating, opacity, grayscale and more.
oklch(from hotpink calc(l - 20) c h) hsl(from hotpink h calc(s / 2) l) hsl(from hotpink h s l / 50%) hsl(from hotpink h none l)
demo · source
There might be one or two RCS features you didn't know 🤓