Sub topic 1
Why Layout Principles Matter: Guiding the Reader's Eye
This chapter introduces visual hierarchy and the four layout principles the rest of the tutorial covers: contrast, alignment, repetition, and proximity. It explains what each principle does and how they work together to direct a reader's attention. Later chapters cover each principle in detail.
Prerequisites
This chapter assumes you already have the following:
- Basic familiarity with a design or layout tool such as Figma, Canva, Illustrator, or InDesign. You should be able to place text and shapes on a canvas and change their properties.
- Basic typography vocabulary: typeface, font size, weight, and line spacing.
- An understanding of common layout elements such as headings, body text, images, and buttons.
You do not need to write code. The CSS examples in this tutorial are short and are there to show that each principle maps to concrete, measurable choices. If you work only in a visual tool, read them as lists of property values.
What visual hierarchy is
Visual hierarchy is the order in which a reader notices and reads the elements on a page. Every layout has a hierarchy, whether or not the designer chose one. If you do not set it deliberately, the reader's eye falls on whatever happens to be largest, darkest, or closest to the top left, and that may not be the most important thing.
A useful hierarchy answers three questions in order:
- What should the reader see first? This is the entry point, often a headline or a key image.
- What should they see next? These are supporting elements such as subheadings, a short description, or a price.
- What can they find later if they want it? This is fine print, secondary links, and reference details.
A reader makes these decisions within a second or two, before reading any words. They scan for shapes, size differences, and groups. If the structure is clear, they know where to start and where to go next. If it is not, they have to work it out themselves, and many will leave instead.
Why layout principles exist
Robin Williams described four principles in The Non-Designer's Design Book. Each one is a tool for controlling hierarchy and structure without relying on taste or talent.
| Principle | Question it answers | Typical tools |
|---|---|---|
| Contrast | Which things are different, and which matters most? | Size, weight, color, typeface |
| Alignment | Is every element connected to something else on the page? | Shared edges, grids, consistent text alignment |
| Repetition | Does the design feel like one thing? | Repeated fonts, colors, spacing, component styles |
| Proximity | Which items belong together? | Distance between elements, white space |
The principles are not decoration rules. They are communication rules. Each one reduces the effort a reader spends working out what the page is saying.
A worked comparison
Consider a conference flyer with a title, a date and location, a short description, a list of three speakers, and a registration button. In a weak version, everything is the same size and weight, text is centered in some places and left-aligned in others, and the lines are evenly spaced down the page. The reader sees a block of similar-looking text.
You can diagnose that flyer by asking one question per principle:
- Contrast: Does the title look different from the description? In the weak version it does not.
- Alignment: Do the elements share edges? Some are centered and some are left-aligned, so no strong edge connects them.
- Repetition: Are the three speakers styled the same way? If one is bold and another is italic for no reason, the reader wonders whether the difference means something.
- Proximity: Is the date next to the location, and is each speaker's name next to their title? Even spacing makes everything look equally related, so nothing looks grouped.
Fixing the flyer means answering each question with a deliberate choice. Make the title much larger and bolder. Left-align everything on one edge. Style all three speakers identically. Put 8px between related lines and 32px between groups.
How the principles show up in code
Even if you design visually, it helps to see each principle as a set of values. The first example applies proximity and contrast to a card.
.card {
display: grid;
gap: 8px;
padding: 24px;
max-width: 40ch;
}
.card h2 {
margin: 0;
font-size: 1.5rem;
font-weight: 700;
}
.card p {
margin: 0;
font-size: 1rem;
font-weight: 400;
line-height: 1.5;
}
.card + .card {
margin-top: 32px;
}Items inside a card sit 8px apart, while cards sit 32px apart. That difference in distance is proximity: the reader sees each card as one unit. The heading differs from the body in both size (1.5rem against 1rem) and weight (700 against 400). That difference is contrast: the reader sees the heading first.
The second example applies repetition by defining values once and reusing them.
:root {
--color-text: #1a1a1a;
--color-accent: #0b5fff;
--space-sm: 8px;
--space-md: 16px;
--space-lg: 32px;
}
body {
color: var(--color-text);
font-family: system-ui, sans-serif;
}
.button {
background: var(--color-accent);
color: #ffffff;
padding: var(--space-sm) var(--space-md);
}
.link {
color: var(--color-accent);
}The accent color is stored once as a custom property and used for both the button and the link. Every part of the interface that uses it looks the same, which is the point of repetition. Changing the value in one place changes it everywhere.
The third example applies alignment.
.page {
display: grid;
grid-template-columns: 1fr 2fr;
column-gap: 24px;
align-items: start;
}
.page > * {
text-align: left;
}A two-column grid puts elements on shared column edges, and left-aligned text gives every line the same starting edge. Those shared edges are what the eye follows.
How the principles work together
The four principles are not independent. Each one affects the others, and the concept map for this tutorial reflects that:
- Proximity creates groups. Alignment then connects the groups to each other, and repetition makes similar groups look the same.
- Contrast sets the order of attention, and repetition keeps that order consistent from page to page.
- If you overuse one principle, it can weaken another. Extreme contrast on every element means nothing stands out.
The tutorial follows this order. Hierarchy comes first because it is the goal. Contrast and proximity come next because they most directly shape what the reader sees and how they group it. Alignment and repetition then give the layout structure and consistency.
The reader's eye path
Readers do not move across a page randomly. In left-to-right languages, they usually start near the top left and follow predictable paths, often a Z shape on sparse pages or an F shape on text-heavy ones. These paths are tendencies, not laws, and strong contrast can override them. A large, dark headline in the middle of the page will usually pull the eye away from the top left.
This matters for placement. Put the most important item where the eye is already heading, or make it contrast strongly enough to capture attention wherever it is. Then use alignment and proximity so the eye can move from one group to the next without getting lost.
Edge cases and caveats
- Hierarchy is relative. A 24px heading looks large next to 14px body text and small next to a 96px display title. Judge contrast by comparing elements on the same page.
- Context changes the rules. A dense data table needs more repetition and less contrast than a poster. A poster may need a single dominant element, while a dashboard needs several equal-weight groups.
- Medium matters. Print, slides, and responsive web pages have different viewing distances and screen sizes. A hierarchy that works on a desktop can collapse on a phone if the size differences shrink.
- Breaking a principle can be intentional. A deliberately off-grid element can draw attention. This works only when the rest of the layout is firmly aligned, so the exception reads as a choice.
- A principle is not a quota. Adding more bold text or more colors does not improve contrast. The goal is clear differences, not many differences.
A quick method for checking hierarchy
You can test a layout without any special tool.
- Squint at it or blur it until you cannot read the text. Note which shapes stand out.
- Write down the order in which you notice elements.
- Compare that order with the order you intended.
- For each mismatch, identify which principle would fix it. A missing focal point is a contrast problem. A scattered look is usually an alignment or proximity problem. A patchwork look is a repetition problem.
This diagnostic habit is the core skill of the tutorial. Later chapters give you more precise tools for each step.
What comes next
The next chapters take one principle at a time. Proximity comes first, then white space, alignment and grids, contrast and its accessibility limits, and repetition and design systems. After that, you will combine the principles in a single layout, learn to critique a weak layout, and review the common mistakes that come from overusing them.
Exercises
Exercise
A landing page has a headline, a subheading, a paragraph, and a "Sign up" button, all in the same font size and weight, evenly spaced down the page. Name the principle that most directly fixes the missing focal point, and give two concrete changes you could make.
Show answer
Contrast. For example, increase the headline to a much larger size and a heavier weight than the paragraph, and give the "Sign up" button a saturated accent color with a plain background around it. Either change makes the first and second things the reader should see obviously different from the rest.
Exercise
In the card CSS in this chapter, gap is 8px inside a card and the margin between cards is 32px. Which principle does this apply, and what would happen to the reader's perception if both values were set to 20px?
Show answer
It applies proximity. With both values at 20px, the distance inside a card equals the distance between cards, so the reader could not tell where one card ends and the next begins. The groups would blur together.
Exercise
A flyer centers its title, left-aligns its description, and right-aligns its date. Which principle is weak, and what is the simplest fix?
Show answer
Alignment is weak, because the elements do not share an edge. The simplest fix is to left-align all three elements on one shared edge, or place them on a shared grid.