~/talk

Color in CSS: using new spaces, functions, and techniques to make your site shine

Talkat Florida DrupalCamp 2024 · 2024-02-23..02-25· [css, web-platform]
slides:none on file

CSS adds new color spaces and functions that let sites access wider gamuts and perceptually uniform mixes: display-p3 color() with >1 channel values shows noticeably brighter blues versus sRGB in the demo, and oklch fixes blue hue shift removes the purple artifact seen in lab gradients. New APIs include color-mix, relative color syntax to adjust H/S/L without separate custom props, and accessibility helpers like light-dark supported in Firefox while color-mix inconsistent across browsers (and color-contrast remains experimental in Safari).

AI-written summary · about

  1. 0:00Introduction and speaker background
  2. 1:04Overview of current color spaces
  3. 3:51Understanding gamuts and color spaces
  4. 8:53New features in CSS Color Module 4
  5. 10:17CIE and Display P3 color spaces
  6. 17:45LAB, LCH, and OKLAB/OKLCH color spaces
  7. 24:28CSS Color Module 5 features
  8. 25:31Color mix function demonstration
  9. 30:47Relative color syntax
  10. 33:15Light dark function for accessibility
  11. 35:45Color contrast function preview
  12. 37:10Summary and additional resources
  13. 38:14Q&A session
~/search
type to search 6,518 conferences, 143,918 speakers and 192,133 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.