RSS FeedTwitterMastodonBlueskyShare IconHeart IconGithub IconArrow IconClock IconGUI Challenges IconHome IconNote IconBlog IconCSS IconJS IconHTML IconShows IconOpen Source Software IconSpeaking IconTools IconShuffle IconNext IconPrevious IconCalendar IconCalendar Edit IconNotebook IconObservable Notebooks 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
12 likes
3 reposts
  • ????????????????????
  • Alexander Lehner, CPACC
  • GENKI

Crawl the CSS Webring