lesson
25 min

Visual Hierarchy

Use size, contrast, spacing, and order to show people what matters most.

What you will learn in this lesson

You will turn a gray wireframe into a clear screen. You will use visual hierarchy to guide the eye to what matters.

What visual hierarchy is

Visual hierarchy is the order in which people notice things on a screen. Good hierarchy makes the most important thing the easiest to see. People scan before they read. Hierarchy decides what they find while scanning.

Four tools you control

ToolHow it helpsExample
SizeBigger things get noticed firstThe main heading is the largest text
ContrastDark on light (or light on dark) stands outThe main button is black with white text
SpacingSpace around something makes it stand out and groups related itemsExtra space above each section
OrderPeople read top to bottom, and left to right in EnglishThe main action comes before extras

One main action

Each screen should have one main button that looks different from everything else. If every button is bold, nothing stands out. Make secondary actions plain links or outlined buttons.

Contrast is not optional

Text must be easy to read for people with low vision, older adults, and anyone on a phone in bright Texas sun. The standard (WCAG 2.2 AA) asks for a contrast ratio of at least 4.5 to 1 for normal text. Pale gray text on white often fails. You will check this in Module 6.

Practice: fix the hierarchy

This taco truck schedule has weak hierarchy. Everything looks the same. Change the CSS so today's location stands out, the "Get directions" button is the clear main action, and the text is dark enough to read. To leave the editor with a keyboard, press Esc, then Tab.

Make today's spot stand out

Edit styles.css. Make the h1 bigger, make .today stand out with size and spacing, make the button the main action, and darken the pale text.

Loading the code editor...

Press Esc, then Tab, to move focus out of the editor.

Reflection

Private. Saved only in this browser. No one else can see it.

Go deeper: Web Design That Works, a Temerarii Media playbook.