Composable component APIs, design tokens and theming, type-safe boundaries, monorepo structure, and micro-frontends.
Follow the suggested order, or jump to any tutorial.
Compound and Headless ComponentsStart here
Build flexible component APIs that teams can compose instead of configure: compound components with context, headless hooks that separate behavior from markup, and when each pattern is worth it.
Component API Design for Design Systems
Design shared components that hundreds of engineers can use correctly: naming, variants vs. booleans, polymorphism, escape hatches, accessibility by default, and evolving APIs without breaking consumers.
Design Tokens and Theming at Scale
Structure tokens in tiers (primitive, semantic, component), ship them as CSS variables, support dark mode and multiple brands without rebuilding components, and keep design and code in sync.
TypeScript at Scale: Type-Safe Boundaries
Use TypeScript as an architecture tool: validate at runtime boundaries, model states with discriminated unions, brand IDs, share contracts between client and server, and keep a large codebase's types fast.
Monorepos, Module Boundaries, and Build Tooling
Structure a frontend monorepo that stays fast and decoupled: package boundaries and dependency rules, affected-only builds, remote caching, bundling choices, and bundle budgets.
Micro-Frontend Architecture
A comprehensive guide to building scalable and maintainable frontends with micro-frontend architecture