RSS FeedTwitterMastodonBlueskyShare IconHeart IconGithub IconArrow IconClock IconGUI Challenges IconHome IconNote IconBlog IconCSS IconJS IconHTML IconShows IconGit IconSpeaking IconTools Icon
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

Join the conversation on

12 likes
3 reposts
  • ????????????????????
  • Alexander Lehner, CPACC
  • GENKI

Crawl the CSS Webring?

previous sitenext site
a random site