# 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.

Web page: https://odeocreative.me/tutorials/ui-design/visual-hierarchy
Author: Hecham Gazhi (https://odeocreative.me)

Track: [UI Design Tutorial](/md/tutorials/ui-design.md)

## 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.

## Start with priorities, not pixels

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

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

> Tip: 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.

| Element | Before | After |
| --- | --- | --- |
| Card title | 16px regular, black | 18px semibold, near-black |
| Description | 16px regular, black | 15px regular, grey (#6b6860) |
| Metadata | 16px regular, black | 13px regular, light grey |
| Action | Text link | Primary 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.

> Tip: 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:

| Level | Style | Example |
| --- | --- | --- |
| Primary | Filled, accent colour — usually one per view | Continue to payment |
| Secondary | Outlined or tonal | Save for later |
| Tertiary | Text button or link | Cancel |
| Destructive | Red, often requires confirmation | Delete account |

## Fixing a flat design, step by step

1. Write down the single most important element and the main action.
2. Convert the screen to greyscale so colour doesn't hide problems.
3. Make the primary element clearly larger or bolder.
4. Soften secondary and tertiary text with a lighter grey and smaller size.
5. Increase space between groups and decrease space within groups.
6. Give the main action the only filled, accent-coloured button.
7. Run 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.

## Quiz

1. What should you decide before styling a screen?
   - The font
   - **The priority of each element** ✓
   - The animation
   - The brand colour
   - Why: Hierarchy starts with knowing what matters most.

2. Which is NOT a tool for visual hierarchy?
   - Size
   - Contrast
   - Spacing
   - **File name** ✓
   - Why: File names aren't visible to users.

3. A heading doesn't stand out. A good first step is…
   - Make everything bold
   - **De-emphasise the surrounding text** ✓
   - Add more colours
   - Add an animation
   - Why: Quieting secondary elements often works better than making the primary louder.

4. On text-heavy pages, people often scan in a…
   - Circle
   - **F-shaped pattern** ✓
   - Random order
   - Bottom-up order
   - Why: Eye-tracking studies show an F-shaped pattern on text-heavy pages.

5. How many primary (filled, accent) buttons should a view usually have?
   - **One** ✓
   - Three
   - As many as possible
   - None
   - Why: One primary action makes the main path obvious.
