~/talk

Building a design system in Next.js with Tailwind

Talkat Next.js Conf 2022 · on Tuesday, 2022-10-25· [design-collaboration, css]
slides:none on file

Concrete recipe for a working design system: Next.js plus Tailwind for theme tokens, TypeScript path aliases for clean imports, class-variance-authority (CVA) to manage button variants and get proper types, and Headless UI for keyboard-accessible primitives. The demo builds a reusable Button, a dropdown Menu, and Storybook stories; components accept typed variant props, render correctly in the app and in Storybook, and keyboard interaction works as expected. The claim is that this stack reduces boilerplate and keeps accessibility intact.

AI-written summary · about

  1. 0:00Introduction
  2. 1:46Build vs use libraries
  3. 2:28Tailwind for design systems
  4. 4:13Conditional styling with clsx/CVA
  5. 5:36Accessibility in components
  6. 5:56TypeScript path aliases
  7. 6:39Storybook for testing
  8. 7:23Demo: Button with CVA
  9. 9:54Accessible dropdown with Headless UI
  10. 11:39Storybook setup
  11. 13:00Closing
~/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.