Principle 11
Space is the quietest way to say these things belong together and those do not. Borders, shadows and fills are louder tools; use one of them at a time, and only when space is not enough.
In a real interface
✕ Avoid
✓ Do
01
NN/g explains that items close together are perceived as one group, and that proximity can overpower competing cues such as similarity of color or shape. Space already does most of the separating.
Refactoring UI makes the same point from the other side: borders are a good way to distinguish two elements, but using too many of them makes a design feel busy and cluttered.
02
Start with more space between groups than inside them. If that is not enough, pick one tool: a different background, a soft shadow or a line. Refactoring UI lists exactly those three as the alternatives to a border.
Never stack them. A border, a shadow and a fill on the same edge all repeat the same message and add weight without adding meaning.
03
Dense tables and long forms may need lines, because space alone would make them too tall. Interactive controls still need visible edges so people can find them; separating content is not the same as marking what can be pressed.
✓ Do
✕ Avoid
For agents · PRINCIPLE.md
## Space separates before lines do
- Put more space between groups than inside them.
- If space is not enough, add one tool: a background change, a soft shadow or a line.
- Never combine a border, a shadow and a fill on the same edge.
- Keep visible edges on interactive controls.
Enforced byBADESIGN one separation method per boundarykero-method separates with space before lines