~/talk

Designing React Interfaces: A Journey Through Modern Styling Techniques

Talkat React India 2024 · 2024-10-15..10-19· [react, component-design]
links:none on file
slides:none on file

Builds a Chakra/NextUI‑style Button API with live demos using vanilla CSS vars, styled‑components/CSS‑in‑JS, style‑system, class‑variance‑authority, Tailwind (+ tailwind‑variants) and Panda CSS, showing a full Chakra clone implemented in 2021. Compares theme-driven token flows, variant-based API patterns, and tradeoffs: CSS‑in‑JS offers dynamic props but incurs runtime overhead and server rendering costs; style‑system supplies responsive props; Tailwind generates semantic classes and creates eight theme + dark combinations in four files; Panda provides build-time generation with no runtime cost.

AI-written summary · about

  1. 0:00Introduction to talk
  2. 0:43Goals of modern styling
  3. 2:07Agenda and best practices
  4. 3:09CSS variables and class names
  5. 5:38Pros and cons of CSS approach
  6. 6:05Style components overview
  7. 7:53Dynamic styling with CSS-in-JS
  8. 8:57Component composition
  9. 10:23Pros and cons of style components
  10. 10:45Introduction to style systems
  11. 11:50Building a design system
  12. 13:15Utility functions and type safety
  13. 14:21Button component with style system
  14. 16:03Pros and cons of style systems
  15. 17:06CSS-in-JS performance concerns
  16. 17:29Class variance authority
  17. 19:17Flexible theme-driven utility classes
  18. 21:47Pros and cons of CVA approach
  19. 22:30When to use CSS and CVA
  20. 22:52Tailwind CSS overview
  21. 24:16Creating buttons with Tailwind
  22. 25:42Compound variants and themes
  23. 26:26Pros and cons of Tailwind
  24. 27:55Multiple themes with Tailwind
  25. 28:25Panda CSS introduction
  26. 29:07Design tokens in Panda CSS
  27. 30:10Custom utilities and responsiveness
  28. 30:55Pros and cons of Panda CSS
  29. 31:39Key takeaways and conclusion
~/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.