574 views · 3 active
adam@GUIchallenges
noteshowscss

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 🤓

Avatar is shown next to a syntax breakdown visual of css relative color syntax
12likes
3reposts
  • ????????????????????
  • Alexander Lehner, CPACC
  • GENKI

Join the conversation on