Styling at Scale & Design Systems
Style large apps consistently with design tokens, scoped component styles and a documented, accessible component library, including framework-agnostic web components.
4 objectives 6 steps about 135 min
Learn it step by step
Read the lessons in order, try the practice checks, then prove the skill with the knowledge check.
This skill page is a public outline. Its lessons and knowledge check appear here as subject-matter experts approve them.
Learning objectives
- Define design tokens (color, spacing, type scale, radius, motion) as CSS custom properties and use them for theming, including dark mode and reduced motion.
- Choose a scalable styling approach (CSS Modules, utility-first CSS such as Tailwind, or cascade layers) and justify its trade-offs in specificity control, shipped CSS and team workflow.
- Build reusable, accessible components with typed variant APIs and document every state in a component workshop such as Storybook.
- Build a framework-agnostic custom element with a template, shadow DOM and slots, theme it through custom properties and ::part, and use it from a React app.
Lesson plan
6 steps, about 135 min · 5 of 5 lessons available so far
- Design Tokens and Theming with Custom Properties Worked example · 25 min
- Comparing Styling Strategies: Modules, Utilities, Layers Concept · 20 min
- Designing Component APIs: Variants, Slots and States Concept · 20 min
- Lab: A Themed Button, Field and Dialog Kit in Storybook Lab · 30 min
- Web Components: Custom Elements, Shadow DOM and Slots Worked example · 25 min
- Check: Review a Component Library Pull Request Knowledge check · 8 questions
Practise it
Extract a small component library (Button, TextField, Select, Dialog, Toast) from your app with token-based light and dark themes, typed variant props, Storybook stories for every state, and no hard-coded colors or spacing outside the token file. Ship one widget (for example a rating input) as a custom element themed by the same tokens and render it inside the React app.
References
Hard prerequisites
Unlocks
Nothing depends on this skill yet.
On these roadmaps
Progress and evidence for this skill are shared across all of them.