Signs it is time
- The same component exists several times in the codebase, each version with slightly different behaviour.
- Designers spend review time correcting spacing and colour rather than discussing the product.
- A brand or accessibility change means editing dozens of screens by hand.
- A second product or team is starting, and it will otherwise copy the first one's inconsistencies.
- New developers ask which button to use, and get different answers.
One sign alone may not justify the work. Several together mean you are already paying for the lack of a system, just in small amounts spread across every sprint.
What a system is made of
It helps to think in layers. Each one depends only on the layers beneath it, so a change to a token flows upward without anyone touching the product screens.
- L1 Product screensDashboardsCheckoutSettingsOwned by product teams and assembled from the layers below.
- L2 PatternsFormsTablesEmpty statesReusable solutions to recurring problems, with guidance on when to use them.
- L3 ComponentsButtonInputDialogBuilt once, including keyboard behaviour and every state.
- L4 TokensColourTypeSpacingNamed decisions shared by design tools and code.
Start with an audit and tokens
Take screenshots of every button, input and heading in the product and put them side by side. The inconsistency is usually persuasive on its own, and it shows you what to standardise first. Then turn the decisions into tokens. Components refer to a token's purpose rather than a raw value, which makes a theme change a small edit.
:root {
--color-surface: #ffffff;
--color-text: #16161f;
--color-action: #4f35d9;
--color-on-action: #ffffff;
--space-3: 12px;
--space-4: 16px;
--radius-control: 6px;
}
[data-theme='dark'] {
--color-surface: #101018;
--color-text: #f4f4f8;
--color-action: #b4a5ff;
--color-on-action: #101018;
}
.button {
padding: var(--space-3) var(--space-4);
border-radius: var(--radius-control);
background: var(--color-action);
color: var(--color-on-action);
}
Build it alongside product work
A long project to rebuild everything rarely survives contact with the roadmap. A gradual approach works better.
- Choose the five components that appear most often, usually button, input, select, card and dialog.
- Build each one properly when a feature next needs it, with accessible behaviour and all its states.
- Use the new version in all new work, and replace old ones when a screen is being changed anyway.
- Document each component with a short example and clear guidance on when not to use it.
How to tell if it is working
Watch for practical signals: new screens use system components by default, reviews spend less time on visual details, and accessibility fixes land in one place instead of many. If teams keep working around a component, treat that as feedback. The system exists to serve the product, not the other way round.