What is a design system and why does frontend architecture need one?
A design system is a shared collection of reusable UI components, design tokens, and guidelines that define how an interface should look and behave. It gives teams a consistent foundation so they do not rebuild the same elements repeatedly.
What a design system contains
- Design tokens: named values for colours, spacing, typography, and similar properties.
- Components: reusable building blocks such as buttons, inputs, and dialogs, with defined behaviour and states.
- Patterns and guidelines: rules for layout, content, and interaction.
- Documentation: usage notes so developers and designers apply the components correctly.
Why it matters for architecture
A design system is an architectural boundary as much as a visual one. It separates reusable UI from feature code, which makes the shared layer easier to test and version. Features can depend on the design system, but the design system should not depend on any feature.
It also supports micro-frontends and multi-team products, because each team can use the same components without coordinating every decision.
Common pitfalls
- Building a large system before there is real demand for it. Extract components from working features instead.
- Letting the system become a dumping ground with no ownership.
- Making components too specific to one feature, which limits reuse.
Practical approach
Start with a small set of primitives used across the product, document them, and grow the set as patterns repeat. Who owns the system and how changes are reviewed depend on your organisation, so agree on that with your team early.