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
| Tool | How it helps | Example |
|---|---|---|
| Size | Bigger things get noticed first | The main heading is the largest text |
| Contrast | Dark on light (or light on dark) stands out | The main button is black with white text |
| Spacing | Space around something makes it stand out and groups related items | Extra space above each section |
| Order | People read top to bottom, and left to right in English | The 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.
Reflection
Go deeper: Web Design That Works, a Temerarii Media playbook.