Sub topic 8
Establishing visual hierarchy
Visual hierarchy is the order in which a person notices and reads the elements on a screen. In a wireframe you set that order with size, position, spacing, grouping, and contrast. You do this before color or imagery exist, so the structure has to work on its own.
This chapter assumes you have a screen inventory, a rough sketch of each screen, and a grid to place elements on. It covers how to rank content, which tools create emphasis in grayscale, how to check the result, and which errors show up most often.
Why hierarchy comes first
A screen without hierarchy forces people to read everything to find anything. A screen with a clear hierarchy answers three questions in order:
- Where am I?
- What can I do here?
- What should I do next?
Wireframes are the cheapest place to fix this. Moving a button costs seconds now and days after visual design and development are done.
Rank the content before you draw
Start from the user flow, not from the layout. For each screen, list every element and sort it into three tiers.
| Tier | Meaning | Example on an order history screen |
|---|---|---|
| Primary | The reason the screen exists | The list of orders and each order's status |
| Secondary | Helps the user act on the primary content | Filters, sort control, search |
| Tertiary | Needed occasionally | Help link, terms, account menu |
A useful rule: each screen gets one primary action or one primary content block. If you have three "most important" things, the ranking is not finished. Ask which one the user's goal in this step depends on.
Tools for creating emphasis
Wireframes are usually grayscale, so you rely on tools that do not need color.
- Size. Larger elements read as more important. A page title is larger than a section heading, which is larger than body text. Use a small, fixed set of sizes, for example three or four.
- Position. In left-to-right languages, people scan the top and left first. Put the primary content near the top and the primary action where the eye finishes reading, often at the end of a form or the bottom of a card.
- Weight and contrast. A solid dark button stands out from an outlined one. A filled shape beats an outline, and an outline beats plain text.
- Whitespace. Space around an element isolates it and raises its importance. Crowding lowers it.
- Grouping. Elements that are close together, or share a box, read as related. This is the principle of proximity.
- Alignment. A shared left edge makes a set of elements read as a list or column. Breaking alignment on purpose draws attention to the exception.
Limit the levels
Use as few levels as the content needs. Most screens work with four: page title, section heading, body, and meta text. More levels make the differences too small to notice.
Button hierarchy
Actions are where hierarchy errors cost the most. Define three button styles and apply them consistently.
| Style | Wireframe treatment | Use for |
|---|---|---|
| Primary | Solid dark fill, label in light text | The single main action on the screen |
| Secondary | Outline, no fill | Alternative actions such as "Save draft" |
| Tertiary | Text only, underlined or plain | Low-priority actions such as "Cancel" |
Show at most one primary button per view. If a destructive action such as "Delete account" appears, do not give it the primary style unless deleting is the point of the screen.
Applying it to a screen
The wireframe from the earlier grid chapter has a header, navigation, a main section, a sidebar, and a footer. Hierarchy decides what goes inside each region and how heavy it looks. The CSS below extends that grayscale kit with three emphasis levels, so the wireframe shows ranking without any color.
.wf-box { border: 1px solid #888; background: #f2f2f2; padding: 8px; }
/* Four text levels */
.wf-title { font-size: 28px; font-weight: 700; margin: 0 0 16px; }
.wf-heading { font-size: 20px; font-weight: 600; margin: 24px 0 8px; }
.wf-body { font-size: 16px; font-weight: 400; }
.wf-meta { font-size: 13px; color: #555; }
/* Three button levels */
.wf-btn { padding: 10px 16px; border: 2px solid #222; font-size: 16px; }
.wf-btn-primary { background: #222; color: #fff; }
.wf-btn-secondary { background: transparent; color: #222; }
.wf-btn-tertiary { border-color: transparent; background: transparent;
color: #222; text-decoration: underline; }And the matching markup for a checkout step, which has one primary action:
<main class="wf-box">
<h1 class="wf-title">Review your order</h1>
<p class="wf-meta">Step 3 of 3</p>
<h2 class="wf-heading">Items</h2>
<p class="wf-body">2 items, total $48.00</p>
<button class="wf-btn wf-btn-primary">Place order</button>
<button class="wf-btn wf-btn-secondary">Save for later</button>
<button class="wf-btn wf-btn-tertiary">Cancel</button>
</main>Here the title is largest, "Place order" is the only filled shape, and "Cancel" recedes. A user who glances at the screen sees the page purpose and the next step.
How the eye moves
People do not read screens line by line. They scan in patterns that depend on layout.
- F-pattern. On text-heavy pages, attention runs across the top, then down the left edge with shorter sweeps. Put headings and key words at the start of lines.
- Z-pattern. On sparse pages such as landing screens, the eye runs top left, across, diagonally down, then across again. Put the logo, the headline, and the call to action along that path.
- Layer-cake scanning. On pages with clear headings, people read headings and skip the body. Descriptive headings carry the page.
These are tendencies, not laws. Use them as a starting guess and confirm with testing.
Checking your hierarchy
Run these checks on every wireframe.
- Squint test. Blur your eyes or shrink the wireframe to thumbnail size. The primary element should still stand out. If everything blurs into equal gray, there is no hierarchy.
- Five-second test. Show the screen to someone for five seconds, then ask what the page is for and what they would do next. Wrong answers point at wrong emphasis.
- Count the loud things. Count elements that look heavy, such as filled shapes, large type, and bold text. More than two or three competing means that none wins.
- Check by tier. Does every primary element look heavier than every secondary one? Does anything tertiary look louder than something secondary?
Common errors
- Everything is emphasized. Bold labels, bordered boxes, and large text on every element cancel each other out. Remove emphasis until the ranking is visible.
- Hierarchy by decoration. Using many font sizes or borders for small differences adds noise. Prefer larger, deliberate steps.
- Competing primary buttons. Two filled buttons side by side leave the user to guess. Demote one.
- Ranking by internal importance. The business wants to promote a feature, but the user's goal is elsewhere. Rank by the flow, then negotiate exceptions openly.
- Hierarchy that breaks on resize. On a narrow screen, a sidebar stacks below the main content, so check that the primary action is still reachable without long scrolling. The order of elements in the markup should follow the order of importance, or the mobile order will be wrong.
- Relying on color alone. A red "error" without an icon or text fails for color-blind users. Pair emphasis with shape, weight, or text. Chapter 16 returns to this.
Exercise
A wireframe for a sign-up screen shows a filled "Create account" button, a filled "Sign up with Google" button, and a large bold "Already have an account?" link, all the same size and weight. Using the tiers and button styles from this chapter, describe how you would fix the hierarchy and which test you would use to confirm it.
Show answer
Pick one primary action. "Create account" is the main goal, so it keeps the solid fill. "Sign up with Google" is an alternative route to the same goal, so make it secondary (outline). "Already have an account?" is for a different user and a different goal, so make it tertiary (plain text link, normal weight, smaller size). Place the primary button at the end of the form. Confirm with the squint test: at thumbnail size, only "Create account" should stand out. A five-second test asking "what would you do next?" gives a second check.
Exercise
You move the sidebar of a two-column layout above the main content in the CSS, so it displays first on mobile, even though the main content is more important. Name two problems this causes.
Show answer
First, the visual hierarchy is wrong on small screens: users must scroll past secondary content such as filters to reach the primary content. Second, if source order and visual order diverge, keyboard and screen reader users get a different order than sighted users, which breaks the intended hierarchy for them. Put the main content first in the markup and use the grid to place the sidebar.