Visual hierarchy
Making the most important thing on a screen the most noticeable.
Visual hierarchy uses size, weight, color and position to guide attention. A screen with no clear hierarchy feels busy even when it has little on it. It is the single most useful visual skill for engineers who build interfaces without a designer.
Why it matters for a product engineer
Visual hierarchy uses size, weight, colour and position to guide the eye. A screen with no clear hierarchy feels busy even when there is little on it. For engineers who build interfaces without a designer, it is the most useful visual skill: most of it is a few CSS properties applied with intent.
How to do it
- Decide the one thing each screen is for, and make it the most noticeable element.
- Rank everything else: primary, secondary, the rest. Use size, weight and contrast to show the rank, and use few levels.
- Put related things together and the most important at the top, where people start reading.
- Remove or merge elements that say the same thing.
- Do the squint test: blur your eyes, or the screenshot. What stands out should be what matters.
- Check that the action is next to the thing it changes, so the eye does not have to travel.
Common mistakes
- Everything bold, large or coloured, so nothing stands out.
- Several texts that repeat one message.
- The main action styled like a secondary one.
- The control in one place and its effect in another, far away.
Example
An agent’s audit of RelievApp counted five texts at the start of the breathing scene, and three said the same thing. Some sat on top of the sphere that the session is about. The control was at the bottom and the change at the top, so people watched the control, not the payoff. The audit’s rule for every scene: two texts at most, and none over the subject. (RelievApp in In practice)
Text at the start of RelievApp's breathing scene
- 5
- Texts on the screen
- 3
- Saying the same thing
- 2
- The most the audit allows
- And none over the subject
When five texts compete, the sphere, the one thing the session is about, loses. Fewer words give the subject the top of the hierarchy.
ObservedAn agent's audit of RelievApp, 16 Nov 2026
Sources: Applying UX principles to the visual design of graphical artifacts (NN/g) ↗
In practice
Real productsResources
1- articleStart here
Applying UX principles to the visual design of graphical artifacts ↗
NN/g · 2021 · 9 minA worked example of building visual hierarchy with size, scale and color, checked with a squint test.