3min chapter

JS Party: JavaScript, CSS, Web Development cover image

CSS Color Party 🎉

JS Party: JavaScript, CSS, Web Development

CHAPTER

JavaScript and the Relational Color Syntax

In the browser, there's math in the CSS specs on how to resolve that. So you've got like color number one is hex something, right? You're like SDR color. And then the other color is OKLCH something turbo rad cyan. Well, it will interpolate in one color space, but you can put colors from two. There's also a lot of color libraries to work with. Eventually, there's going to be an object model for it so that you'll get a rich object back That has the channels already broken out for you into RGB or LCH and stuff like that.

00:00

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode