Border radius, stroke widths and borders: how to define the small foundations in a design system
Colour, type and spacing get most of the attention, but corner radius, border widths and divider styles are just as visible. When they are left undefined, every component ends up with slightly different values, and the interface feels subtly inconsistent.
A practical workflow
- Audit what you have. Screenshot or inspect your current UI and list every radius and border width in use. Most teams find far more variations than they expected.
- Pick a small scale. For radius, something like none, small, medium, large and full (pill) covers most needs. For borders, two or three widths are usually plenty.
- Name by role, not value. Semantic tokens such as
radius-control,radius-containerandborder-subtlelet you change the look later without hunting through components. - Handle nested corners. When a rounded element sits inside another rounded container, the inner radius usually looks better slightly smaller: roughly the outer radius minus the padding between them.
- Decide on focus rings early. Focus outlines interact with radius and border width, so define them together.
- Document with examples. Show which components use which tokens, so new components follow the pattern.
Exercise to try Take five existing components (button, input, card, modal, tag) and rebuild them using only your new tokens. Any component that "needs" an off-scale value is a signal: either the scale is missing a step or the design is drifting.
How many radius values does your system use today? And do you tie radius to component size, or keep it constant across sizes?
Comments · 3
Limit radius to a small scale such as 0, 4, 8, 16 and full. A handful of values keeps shapes coherent and makes the system feel intentional.
Define them as tokens like any other value, then alias them by component role. Changing the personality of the whole UI becomes a one-line edit.
Should nested elements use a smaller radius than their container? I've heard of a rule for this.