Skip to content
NewTemplates & toolkits are on the way — join the waitlist
Hecham Gazhi

UI Design · Lesson 02 / 12

Visual hierarchy

How to guide the eye to what matters most using size, weight, colour, contrast, spacing and position — plus scanning patterns, focal points, and a step-by-step method for fixing flat designs.

4 min read · 5 quiz questions

What is visual hierarchy?

Visual hierarchy is the arrangement of elements so that people notice them in order of importance. Every screen has a hierarchy, whether you designed it or not — the question is whether it matches what matters.

When hierarchy works, people understand a screen in a glance: this is a pricing page, this plan is recommended, it costs $29, here's the button. When it doesn't, everything competes, and people have to read every element to work out what to do.

Live preview

Flat

Pro plan

$29 per month

Unlimited projects and priority support.

Choose plan

Clear hierarchy

Pro plan

$29 / month

Unlimited projects and priority support.

Choose plan

Start with priorities, not pixels

Before styling anything, decide what's important. For each screen, list every element and rank it:

  1. 1Primary — the one thing people must notice (the main heading, the price, the main action).
  2. 2Secondary — supporting information that helps decide (descriptions, key details).
  3. 3Tertiary — available but quiet (metadata, legal text, secondary links).

If you can't decide what's primary, the problem is not visual — the screen is trying to do too much. Go back to the user's goal for this screen.

The tools of hierarchy

Size

Larger elements are seen first. A clear jump between sizes (e.g. 32px heading vs 16px body) creates hierarchy; small differences (16px vs 17px) just look like mistakes.

Weight

Bold text stands out from regular. Weight is often better than size for emphasis inside dense UIs like tables and forms.

Colour and contrast

High contrast and saturated colours draw attention; low contrast recedes. Dark text on light for important content, softer grey for secondary text. Reserve your accent colour for the most important actions.

Spacing

Whitespace around an element isolates it and signals importance. Crowded elements feel less important and harder to read.

Position

People generally start at the top and at the start of the reading direction (left in English, right in Arabic). Important content placed there is seen first.

Depth and shape

Shadows, borders and filled backgrounds lift elements forward. A filled button looks more important than an outlined one, which looks more important than a text link.

De-emphasise to emphasise

A powerful technique is to make secondary elements quieter rather than making the primary element louder. If a heading isn't standing out, try lightening the surrounding text before making the heading bigger.

ElementBeforeAfter
Card title16px regular, black18px semibold, near-black
Description16px regular, black15px regular, grey (#6b6860)
Metadata16px regular, black13px regular, light grey
ActionText linkPrimary button

Common mistake: Emphasising everything. When every element is bold, coloured or large, nothing stands out — the hierarchy collapses back to flat.

How people scan

People rarely read screens word by word. Eye-tracking research (notably by Nielsen Norman Group) identified common scanning patterns:

  • F-pattern — on text-heavy pages, people read across the top, then a bit lower, then scan down the left side. Put key words at the start of headings, lines and list items.
  • Z-pattern — on simple pages with little text, the eye moves top-left → top-right → diagonally → bottom-left → bottom-right. Common on landing pages.
  • Layer-cake pattern — people scan headings and subheadings, skipping body text. Clear, descriptive headings make this work well.
  • Spotted pattern — people look for something specific, like a number, link or keyword.

In right-to-left languages like Arabic, these patterns are mirrored: people start at the top right.

Hierarchy of actions

Buttons and links need their own hierarchy so people know the main path:

LevelStyleExample
PrimaryFilled, accent colour — usually one per viewContinue to payment
SecondaryOutlined or tonalSave for later
TertiaryText button or linkCancel
DestructiveRed, often requires confirmationDelete account

Fixing a flat design, step by step

  1. 1Write down the single most important element and the main action.
  2. 2Convert the screen to greyscale so colour doesn't hide problems.
  3. 3Make the primary element clearly larger or bolder.
  4. 4Soften secondary and tertiary text with a lighter grey and smaller size.
  5. 5Increase space between groups and decrease space within groups.
  6. 6Give the main action the only filled, accent-coloured button.
  7. 7Run the blur test. Repeat until the order of attention matches your list.

Example · A product card

Before: product name, price, description, rating and two buttons all in 16px black text, equally spaced.

After: a large image, the name at 18px semibold, the price at 20px bold, the description in smaller grey text, the rating as small stars, one filled "Add to cart" button, and a quiet heart icon for wishlist. The card now reads in the order people decide: what is it, how much, is it good, buy.

Key takeaways

  • Visual hierarchy controls the order in which people notice things.
  • Decide priorities first: primary, secondary, tertiary.
  • Use size, weight, colour, contrast, spacing, position and depth — with clear differences.
  • Often the best way to emphasise is to de-emphasise everything else.
  • Design for scanning (F, Z, layer-cake patterns) and give actions their own hierarchy.

Exercise

Fix a flat screen

  1. Find a screen where everything looks equally important (or design one with all text the same size).
  2. Rank every element as primary, secondary or tertiary.
  3. Restyle it using only size, weight, grey shades and spacing — no colour.
  4. Add the accent colour only to the primary action.
  5. Compare before and after with the blur test.

Test yourself

Visual hierarchy quiz

5 questions. Score 70% or more to complete the lesson.

  1. 1.What should you decide before styling a screen?
  2. 2.Which is NOT a tool for visual hierarchy?
  3. 3.A heading doesn't stand out. A good first step is…
  4. 4.On text-heavy pages, people often scan in a…
  5. 5.How many primary (filled, accent) buttons should a view usually have?