~/talk

CSS Variable Secrets

Talkat SmashingConf New York 2022 · 2022-10-10..10-13· [css, web-platform]
slides:none on file

Demonstrates concrete CSS custom‑property techniques that reduce duplication, create reactive animations and expose clean component APIs: uses pseudo-private variables to avoid repeated fallbacks, registers numeric hue animation with @property to get smooth color transitions, toggles whole declarations and numeric deltas with the Space Toggle pattern plus @supports fallbacks, and implements linear mapping (with counter/reset and integer coercion) to build a fully CSS bar chart. Live tooling includes a scripted demo recorder and slide framework to replay the examples.

AI-written summary · about

  1. 0:00Introduction and background
  2. 1:51Three acts overview
  3. 3:17Outlined button fundamentals
  4. 7:55CSS variables as styling API
  5. 13:35Glossy button and Space Toggle
  6. 22:02Invalid at computed value time
  7. 29:57Bar chart with CSS variables
  8. 43:04API design vs implementation
  9. 45:18Q&A session
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 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
?
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.