In this Hasty Treat, Scott and Wes talk about all things color in CSS, both current and coming soon!
Sentry - SponsorIf you want to know what\u2019s happening with your code, track errors and monitor performance with Sentry. Sentry\u2019s Application Monitoring platform helps developers see performance issues, fix errors faster, and optimize their code health. Cut your time on error resolution from hours to minutes. It works with any language and integrates with dozens of other services. Syntax listeners new to Sentry can get two months for free by visiting\xa0Sentry.io\xa0and using the coupon code TASTYTREAT during sign up.
Sanity - SponsorSanity.io\xa0is a real-time headless CMS with a fully customizable Content Studio built in React. Get a Sanity powered site up and running in minutes at\xa0sanity.io/create. Get an awesome supercharged free developer plan on\xa0sanity.io/syntax.
Show Notes04:39 - color-contrast()
06:01 - Accent color
07:34 - currentcolor
08:54 - Profiled color values - color()
11:00 - color-mix()
14:18 - Space-separated functional color notations
rgba(255 255 255 0)
\xa0instead of\xa0rgba(255,255,255,0.5)
15:28 - RGB and HSL with Alpha
rgb(0 0 0 / 50%)
\xa0or\xa0rgb(0 0 0 / 0.5)
18:22 - Hex + Alpha values
21:49 - lch(), lab(), hwb() notation