~/talk

“Calculating Color: Dynamic Theming with CSS Variables”

Talkat Clarity 2020 · 2020-09-02..09-04· [css, web-platform]
links:none on file
slides:none on file

Shows how to build real dynamic theming with CSS Custom Properties, HSL and calc() only: VAR-based variables break a brand H/S/L into components and recreate lighten/darken, complement, triad, mix (50% average) and a luminosity-based contrast switch that mostly works but is imperfect for accessibility. Demonstrates @property / Houdini (and CSS.registerProperty) enabling smooth transitions for interpolated values, notes partial browser support (Chrome/Edge/Opera/Samsung; Firefox/Safari lagging), recommends Jonathan Neal’s PostCSS polyfill for static fallbacks and warns performance can degrade once you generate thousands of variables.

AI-written summary · about

  1. 0:00Introduction and setup
  2. 1:09Agenda overview
  3. 1:39CSS variables: currentcolor
  4. 3:16Using var() for theming
  5. 5:23Houdini and @property
  6. 8:47HSL color spectrum
  7. 11:13Creating color functions
  8. 13:03Color wheel calculations
  9. 14:53Color mixing logic
  10. 17:08Automated contrast checks
  11. 18:59Real-world application
  12. 20:40Future CSS Color 5 spec
  13. 23:37Conclusion and resources
  14. 24:39Q&A session
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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.