~/talk

Type-Safe Style Systems: The Future of CSS

Talkat JSHeroes 2024 · 2024-05-23..05-24· [css, typescript]
slides:none on file

Claims that type-safe TypeScript APIs can replace stringy Tailwind classes with checked tokens, demos Vanilla Extract producing a theme class with CSS variables, and a Rainbow Sprinkles box component that wires responsive props to tokenized values but remains experimental. Compares Chakra UI and Tailwind, notes strict token types work is partial, measures runtime and prebuilt performance tradeoffs, and shows where type errors still fail to surface. Vanilla Extract and Rainbow Sprinkles get concrete examples and code links.

AI-written summary · about

  1. 0:00Introduction and history
  2. 3:21Early styling approaches
  3. 5:56The evolution of CSS tools
  4. 7:45CSS in JS and modules
  5. 12:42Tailwind and component systems
  6. 22:14The need for type safety
  7. 22:41Vanilla extract and sprinkles
  8. 25:55Conclusion and best practices
~/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.