Build semantic tokens with themes, a variant-driven Button, compound Tabs, and an accessible Dialog, organized as a real component library.
What you'll build
A themeable mini component library with tokens, Button, Tabs, and Dialog that pass keyboard and screen-reader checks.
You'll build the core of a design system, the shared foundation that product teams build UI on. It's organized the way a real component library is:
1tokens.css semantic design tokens + themes
2components/
3 index.js the public API: export { Button, Tabs, Dialog }
4 Button.jsx + .css variant-driven button
5 Tabs.jsx + .css compound tabs with keyboard support
6 Dialog.jsx + .css accessible modal dialog
7App.jsx product code that consumes the libraryThe architecture rules we'll follow:
--action-primary, never #7c3aed), so theming never touches component code.Button.css next to Button.jsx)../components (the index file), never from individual files. That's what lets the library reorganize internals without breaking consumers.Each step's playground has the files built so far. Switch between them with the file tabs above the editor. Read the project brief above for the full requirements.