~/talk

Theming with Design Tokens

Talkat UtahJS Conf 2025 · on Friday, 2025-09-12· [design-collaboration, component-design]
slides:none on file

Centralize hundreds of scattered hex values into CSS variables and a single tokens file so a 5‑step demo login page converts from hard‑coded colors to themeable tokens without changing component code, demonstrated with hot reload showing no visual regressions. Implement a prefers-color-scheme dark theme, add a UI switcher that flips a data-theme attribute via a simple theme provider/useTheme hook, then add a third “glow” theme with gradients; approach works with CSS modules, JS token objects (Webflow -> emotion wrapper), and scales to many themes.

AI-written summary · about

  1. 0:00Introduction to theming
  2. 5:29What are design tokens
  3. 7:59Starting the demo walkthrough
  4. 13:12Centralizing design tokens
  5. 17:07Adding a dark theme
  6. 20:46User-controlled theme switching
  7. 24:11Building custom themes
  8. 26:45Summary and recap
~/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.