Sub topic 10
Combining the Four Principles in One Layout
This chapter assumes you know basic typography vocabulary (typeface, size, weight, line spacing). It also assumes you have used a layout tool such as Figma, Canva, or InDesign, and that you have read the earlier chapters on proximity, white space, alignment, contrast, and repetition. Here you will apply all four principles to one layout and learn how they support or interfere with each other.
Why the principles work as a set
Each principle fixes a different problem.
- Proximity answers "which things belong together?"
- Alignment answers "where does each thing sit relative to the others?"
- Contrast answers "what should I look at first?"
- Repetition answers "does this feel like one piece?"
Applying only one leaves gaps. A layout with strong contrast but loose grouping has a clear focal point and a confusing structure. A layout with tidy alignment but no contrast looks neat and flat, and the reader has no entry point.
The principles also depend on each other. Proximity sets up groups, and alignment ties those groups to shared edges. Contrast tells the reader which group to read first. Repetition carries the same decisions across every group, so you only invent them once.
The dashed arrow matters. You rarely get the layout right in one pass. Repetition often exposes a grouping problem, and you go back.
A worked example: an event flyer
Suppose you must design a flyer for a community workshop. The raw content looks like this:
- Title: "Intro to Urban Beekeeping"
- Subtitle: "A hands-on Saturday workshop"
- Date, time, and place
- A short description (two sentences)
- Price and a registration link
- Organizer name and a contact email
- A photo of a hive
A common first attempt centers everything, uses three typefaces, gives every line the same size, and spaces lines evenly down the page. Every principle is missing. The steps below fix that in order.
Step 1: Group with proximity
Sort the content into groups by meaning, not by the order you received it.
| Group | Contents | Role |
|---|---|---|
| Identity | Title, subtitle | Tells the reader what this is |
| Logistics | Date, time, place | Tells the reader when and where |
| Pitch | Description, photo | Persuades |
| Action | Price, registration link | Tells the reader what to do |
| Source | Organizer, email | Credits and contact |
Then set spacing so that gaps inside a group are clearly smaller than gaps between groups. A workable rule is to make the between-group gap at least three to four times the within-group gap. If items inside a group sit 8 px apart, put groups about 32 px apart. If the two gaps are close in size, readers cannot see the grouping.
Step 2: Align to a shared structure
Choose one alignment and hold to it. For a flyer with a lot of text, a left edge works well. Place every group on the same left edge. The photo's left edge should land on the same line as the text.
A simple two-column grid is enough. The photo takes one column, and all the text groups stack in the other. Every element then has a visible connection to another element.
Avoid mixing centered titles with left-aligned body text unless you have a strong reason. Two alignments on one page produce two competing edges.
Step 3: Rank with contrast
Decide the reading order, then encode it with visible differences.
- Title: the largest and heaviest element.
- Date and place: the second level, because readers need them to decide whether they can attend.
- Registration link: the one accent-colored element, since it is the action you want.
- Description, subtitle, and credits: regular body weight.
Use several contrast tools together: size, weight, color, and typeface. Make differences large enough to be obvious. A title at 28 px against body text at 16 px is a clear difference. A title at 18 px against 16 px looks like a mistake.
Limit yourself to two typefaces at most. A bold sans-serif for headings and a readable serif or sans-serif for body text is enough. Contrast between the two comes from their different roles.
Step 4: Make it consistent with repetition
Now record your decisions and reuse them. Every group heading uses the same size and weight. Every body paragraph uses the same line height. The accent color appears only for actions and a few key marks. The gap between groups is the same everywhere.
Defining these values once keeps the layout consistent, and in code it makes a later change a one-line edit.
The same layout in code
This HTML and CSS version implements all four steps. It runs as shown in any browser.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Intro to Urban Beekeeping</title>
<style>
:root {
--color-text: #1a1a1a;
--color-muted: #4a4a4a;
--color-accent: #0b5fff;
--space-sm: 8px;
--space-md: 16px;
--space-lg: 32px;
}
body {
margin: 0;
padding: var(--space-lg);
color: var(--color-text);
font-family: system-ui, sans-serif;
line-height: 1.5;
}
/* Alignment: two columns sharing edges */
.flyer {
display: grid;
grid-template-columns: 1fr 2fr;
column-gap: var(--space-lg);
align-items: start;
max-width: 900px;
}
.flyer img {
width: 100%;
height: auto;
display: block;
}
/* Proximity: tight inside a group, wide between groups */
.group {
display: grid;
gap: var(--space-sm);
}
.group + .group {
margin-top: var(--space-lg);
}
/* Contrast: size and weight establish the order */
h1 {
margin: 0;
font-size: 2.25rem;
font-weight: 800;
line-height: 1.1;
}
h2 {
margin: 0;
font-size: 1.25rem;
font-weight: 700;
}
p {
margin: 0;
font-size: 1rem;
color: var(--color-muted);
}
/* Repetition + contrast: one accent color, used for the action only */
.action a {
color: #ffffff;
background: var(--color-accent);
padding: var(--space-sm) var(--space-md);
text-decoration: none;
font-weight: 700;
justify-self: start;
}
</style>
</head>
<body>
<main class="flyer">
<img src="hive.jpg" alt="A wooden beehive on a city rooftop">
<div>
<section class="group">
<h1>Intro to Urban Beekeeping</h1>
<p>A hands-on Saturday workshop</p>
</section>
<section class="group">
<h2>Saturday, 14 June, 10:00 to 13:00</h2>
<p>Rooftop Garden, 12 Mill Street</p>
</section>
<section class="group">
<p>Learn how to keep a healthy hive in a small space. We cover equipment, seasons, and safety.</p>
</section>
<section class="group action">
<h2>$40 per person</h2>
<a href="https://example.com/register">Register now</a>
</section>
<section class="group">
<p>Organized by the City Bee Club, [email protected]</p>
</section>
</div>
</main>
</body>
</html>If you open this without a hive.jpg file beside it, the image area shows the alt text. The layout still holds.
Notice how the four principles map to the CSS:
gapand the.group + .groupmargin create proximity.grid-template-columnsand one text column create alignment.- Different
font-sizeandfont-weightvalues per level create contrast. - Custom properties, and reusing the same classes, create repetition.
When principles conflict
Real layouts force trade-offs. These are the common collisions.
Contrast versus repetition
Repetition says to keep styles the same. Contrast says to make things different. These do not truly conflict. Repeat the rule for each level (every H2 looks alike) and create contrast between levels (H1 differs from H2). If two items at the same level look different, that is accidental inconsistency. If two items at different levels look the same, you lost hierarchy.
Alignment versus proximity
A grid can tempt you to spread items evenly across columns. Evenly spread items lose their grouping. When a grid cell would separate related items, keep the items together and let the group span the cell, or leave some cells empty.
Contrast versus accessible legibility
Gray text on white looks refined and often fails. Keep body text at a contrast ratio of at least 4.5:1 against its background, which is the WCAG AA threshold for normal-size text. In the example, #4a4a4a on white passes comfortably. Light gray such as #aaaaaa on white does not.
Alignment versus visual weight
A large photo can look misaligned even when its edge is correct, because its mass pulls the eye. Check the layout by squinting or blurring it. If the page feels lopsided, adjust column widths or whitespace, not the shared edge.
Checking your work
Run through the principles as a short audit, one at a time.
- Proximity: Cover the text with your hand and look at only the gaps. Can you still see the groups?
- Alignment: Draw imaginary vertical lines through the layout. Do most elements land on one of a few lines?
- Contrast: Blur the page. Does the most important element still stand out? Is the second level distinguishable from the third?
- Repetition: Compare any two items at the same level. Are they identical in style?
A useful habit is to change one principle at a time and look at the result. If you change three things at once and the layout improves, you will not know which change did the work.
Variations on the same method
The method does not depend on the medium.
- Slides: Use one title position and style on every slide (repetition). Keep each slide to one idea, grouped tightly (proximity). Make the key phrase much larger than supporting text (contrast). Pin content to the same left margin (alignment).
- Web pages: Use tokens for color and spacing, and a grid for columns. Keep a consistent vertical rhythm between sections.
- Print flyers and posters: You have more space, so you can use larger contrast in size. The need for shared edges and clear groups is the same.
Summary of the process
- List the content and group it by meaning.
- Set tight spacing inside groups and wide spacing between groups.
- Choose one alignment and snap every group to the same edges or grid.
- Rank the groups, then express the ranking with size, weight, and color.
- Record each decision once and reuse it.
- Audit with the four checks and revise.
Exercise
A slide has a title, three bullet points, and a chart. The title and bullets are the same size, the chart floats in the lower right with a different left edge from the text, the gaps between all lines are equal, and the chart title uses a different font from the slide title. Name the principle that is violated for each of the four problems, and give one fix for each.
Show answer
(1) Same size title and bullets: contrast is missing, so make the title much larger and bolder than the bullets, for example 40 px bold against 20 px regular. (2) Chart with a different left edge: alignment is missing, so place the chart on the same column or margin as the text, or on a clearly defined second column. (3) Equal gaps between all lines: proximity is missing, so use small gaps between bullets and a larger gap between the bullet group and the chart. (4) Different font in the chart title: repetition is broken, so use the same typeface and heading style as the slide title, with only the size differing.
Exercise
In the flyer CSS, the designer changes .group + .group { margin-top: var(--space-lg); } to margin-top: var(--space-sm);. What happens to the layout, and which principle suffers? How would you confirm this without reading the code?
Show answer
The gap between groups becomes 8 px, the same as the gap inside a group, so the five groups blur into one long list. Proximity suffers, because readers can no longer tell which items belong together. To confirm it visually, cover the text or blur the page and check whether the group boundaries are still visible. They are not.