Lesson 9 of 12

Visual Hierarchy

When someone opens a screen, they do not read it from top-left to bottom-right like a book. Their eyes jump to whatever stands out most, then scan for what they need. Visual hierarchy is the arrangement of elements so that their order of importance is obvious at a glance. In the previous lesson you built a working flow; now you will make each screen in it easy to scan.

Why visual hierarchy matters

Users on a phone often glance rather than read. If everything looks equally important, nothing is. A clear hierarchy answers three questions within a second or two: Where am I? What is the main thing here? What should I do next?

The tools of hierarchy

ToolHow it creates importanceExample
SizeBigger elements are noticed firstOrder total in a large font on the cart screen
Colour and contrastStrong contrast stands out against muted surroundingsOne filled brand-colour button; others outlined
WeightBold text draws more attention than regularDish name bold, description regular
SpacingEmpty space around an element isolates and emphasises itExtra space above a section heading
PositionTop and left areas are usually seen first in left-to-right languagesSearch bar at the top of the home screen
Proximity and groupingItems close together are read as relatedPrice placed right next to its dish, not across the card
SimilarityItems that look alike are read as the same typeAll tappable links in the same colour

Tip: The last two rows come from the Gestalt principles of perception. Proximity and similarity are the ones you will use every day: they tell users what belongs together without any lines or boxes.

One primary action per screen

Most screens have one action that matters most. Give it the strongest treatment – a filled button in your primary colour – and make secondary actions quieter (outlined or text buttons). On a food-delivery cart, “Place order” is primary; “Add more items” and “Apply coupon” are secondary. Two equally loud buttons make users hesitate.

LevelStyleUse for
PrimaryFilled, brand colour, high contrastThe main next step
SecondaryOutlined or tintedUseful alternatives
TertiaryText link styleLow-priority actions such as “Skip”
DestructiveRed text or outline, often with confirmationDelete, cancel booking

Scanning patterns

Eye-tracking research by Nielsen Norman Group found that on text-heavy pages many people scan in an F-shaped pattern: across the top, then a shorter line lower down, then down the left side. This is a sign of a page that does not support scanning well, not a layout to aim for. Help people by front-loading headings and links with the important words, using clear subheadings and keeping paragraphs short.

Spacing creates structure

Using the 8-point system from the wireframing lesson, make spacing inside a group smaller than spacing between groups. For example, 8 between a dish name and its price, 16 inside the card, 24 between cards, 32 or more between sections. This rule alone fixes many cluttered screens. In code, these values become margin, padding and gap – see the CSS box model.

The squint test

Step back from your screen and squint, or apply a strong blur to a screenshot. The details disappear and only the big shapes remain. Ask: what do I see first, second and third? If the first thing is a decorative banner and not the main task, adjust size, contrast or position until the order matches your priorities.

Watch out: Do not use too many levels of emphasis. If you have five font sizes, four colours and three weights on one card, the hierarchy becomes noise. Fewer, clearer differences work better.

Worked example: a restaurant card

  1. First: the restaurant photo and name (largest, boldest).
  2. Second: rating, delivery time and price for two – grouped on one line with small icons.
  3. Third: cuisine tags in a smaller, muted grey that still meets contrast rules.
  4. Accent: an offer badge in a contrasting colour, used sparingly so it keeps its power.

Checklist

  • Can I name the single most important element on this screen?
  • Is there only one primary button?
  • Is spacing inside groups smaller than spacing between groups?
  • Do headings and links start with the words users scan for?
  • Does the squint test show the order I intended?

Colour is one of the strongest hierarchy tools, and also the easiest to misuse. That is the focus of the next lesson.

Further reading

Key takeaways

  • Visual hierarchy shows the order of importance at a glance.
  • Size, contrast, weight, spacing, position, proximity and similarity are your main tools.
  • Give each screen one clear primary action; make others quieter.
  • Keep spacing inside groups smaller than spacing between groups.
  • Use the squint test to check what really stands out.

Quick quiz

Check what you learned – pick an answer.

1. Which Gestalt principle explains why a price placed right next to a dish name is read as belonging to it?

2. A checkout screen has “Place order” and “Add more items” as identical filled buttons. What is the best fix?

3. What does the squint test check?

Practice exercise

Take a screenshot of any college or government website home page. Mark what you notice first, second and third. Then sketch a revised version where the most common user task is the most prominent element.

Show a hint

Ask what most visitors come to do (for example, check results or admission dates) and make that win the squint test.

Show the solution

A good answer first reports the current order honestly, for example: “1. A large photo slider, 2. the college logo, 3. a scrolling news ticker – the results link is small and in the footer.” The redesign keeps the logo small at the top, places a clear heading and a search box near the top, and adds a short set of large task links (Admissions, Exam Results, Timetable, Fees) as the most prominent block. The slider is removed or reduced to one static image. Spacing within the task block is tighter than between blocks, and there is one primary action. A blurred version of the sketch shows the task links first.

Progress is saved in this browser only.