Sub topic 8
Repetition: Build Consistency
This chapter assumes you know basic typography vocabulary (typeface, size, weight, line spacing) and can build layouts in a tool such as Figma, Canva, InDesign, or in CSS. It also assumes you have read the chapters on proximity and contrast, because repetition depends on both.
What repetition does
Repetition means reusing the same visual decisions across a layout. These decisions include fonts, colors, spacing, alignment, and the shape of components. When the same kind of thing always looks the same, readers learn the pattern once and then stop thinking about it.
Repetition does three jobs:
- It unifies. A five-page brochure with the same heading style, margins, and accent color reads as one document.
- It signals meaning. If every link is blue and underlined, readers know what a link is without being told. If every section title looks alike, readers know where sections begin.
- It reduces effort. Readers predict where to look. Designers also decide once and apply many times.
Repetition depends on contrast. If you repeat a style, you should repeat it on elements that play the same role. A heading style used on every heading creates a pattern. A heading style used on both headings and body text destroys the pattern.
What you can repeat
Repeated elements fall into a few groups. Check each group when you audit a layout.
| Group | Examples | Typical rule |
|---|---|---|
| Type | Typeface, size scale, weight, line height, case | One heading style per level, one body style |
| Color | Text, accent, background, status colors | A small palette with fixed roles |
| Spacing | Margins, padding, gaps between groups | A short scale such as 8, 16, 32 |
| Alignment | Column edges, baseline positions | The same grid on every page |
| Components | Buttons, cards, form fields, captions | One design per component type |
| Graphic motifs | Icon style, line weight, corner radius, photo treatment | One treatment applied everywhere |
Pick a few of these as your signature. You do not need to repeat everything. A poster can repeat one bold color and one corner radius and feel unified.
Repetition within a page and across pages
There are two scales to consider.
Within a page, repetition ties together elements that share a role. Three product cards should have the same image ratio, the same title style, and the same price position. If one card puts the price above the title, the reader has to re-read it.
Across pages or screens, repetition makes a set feel like one product. Slide decks, multi-page documents, and websites need the same header position, footer, margins, and heading styles on every page. Readers move between pages without re-orienting.
Repetition also works across time in a brand. A logo color that appears on the website, the invoice, and the packaging builds recognition.
Code example: tokens as repetition
In CSS, the most direct way to enforce repetition is to define values once and reference them everywhere. Custom properties (also called CSS variables) are named values declared on :root and read with var().
: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 button and the link share one accent color. They are different components, yet they read as part of the same family. The padding uses two values from the spacing scale, so every button gets the same proportions.
The benefit shows up when you change your mind. If the accent should become a deeper blue, you edit one line. Every button and link updates together. Without tokens, you would search the file for each copy of #0b5fff, and you would probably miss one. A missed copy is the kind of small inconsistency readers feel without being able to name.
What this example does not cover
Notice what the code leaves out. The button text is hard-coded as #ffffff. If you later add a dark theme or a second button style, that white will not follow any token. A fuller set would add a token such as --color-on-accent. Tokens help only for the values you actually name.
Design systems: repetition at scale
A design system is a shared set of styles, tokens, and reusable components that a team applies across a product. It turns repetition from a personal habit into a rule.
Three pieces matter most:
- Styles. Named text and color definitions, such as "Heading 2" or "Body".
- Tokens. Named values for color, spacing, radius, and similar properties. The CSS above is a small token set.
- Components. Reusable parts such as a button or a card, built once and placed many times.
In Figma, these map to text styles, color styles or variables, and components with variants. In Canva, brand kits and templates do similar work. In InDesign, paragraph styles, character styles, object styles, and master pages do the job. In each tool, the goal is the same: change the definition, and every use updates.
Use the style, not a manual override. If you select a heading and manually change its size to 27px "just here", you have detached it from the system. The next global change will skip it.
Building a type scale
Repeating type sizes works best when the sizes come from a scale, not from guesses. A scale is a short list of sizes related by a ratio. A ratio of about 1.25 gives a gentle step, and 1.5 gives a strong one.
:root {
--text-body: 1rem;
--text-h3: 1.25rem;
--text-h2: 1.5rem;
--text-h1: 2.25rem;
}
h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }
p { font-size: var(--text-body); line-height: 1.5; }Limiting yourself to four sizes has two effects. The hierarchy gets clearer, because each level is distinct from the others. The layout also gets more consistent, because there are few ways to be wrong.
How repetition relates to the other principles
The principles support each other, and the relationships are worth knowing.
- Repetition and proximity. Consistent spacing is what makes proximity readable. If the gap between a heading and its paragraph is 8px in one place and 20px in another, readers cannot learn that "close means related".
- Repetition and contrast. Contrast tells readers that two things differ. Repetition tells them that two things are the same. A page needs both. A repeated heading style has contrast against body text, and the same contrast appears at every heading.
- Repetition and alignment. A grid is repetition of structure. Columns of equal width and a fixed gutter repeat on every page.
Repetition with variation
Pure repetition is monotonous. Good layouts repeat a pattern and then break it on purpose to mark something important.
Examples:
- A list of plain cards with one featured card that uses the accent background.
- A document where every page has the same grid, but a section opener page uses a full-bleed image.
- A form where every field looks alike, but the primary submit button is the only filled one.
The break works because the pattern is strong. If nothing repeats, nothing can stand out. This is where repetition and contrast cooperate: the repeated pattern is the baseline, and the exception gets the reader's attention.
A useful test is to ask, "Can I explain why this one is different?" If the answer is "it marks the most important action", the variation is purposeful. If the answer is "I changed it because it looked better there", it is probably an inconsistency.
Common errors
These problems appear often when repetition is applied badly.
- Near-duplicates. Two grays that differ slightly (
#666and#6a6a6a), or paddings of 14px and 16px. They look like mistakes. Readers sense the mismatch, and the system grows messy. Merge them into one token. - Too many typefaces. Three or four families in one layout break the pattern. Two is usually enough: one for headings and one for body, or a single family used at different weights.
- Role confusion. Using bold blue for headings, links, and emphasis. Readers cannot tell which are clickable. Give each role its own treatment.
- Overriding styles locally. Manual edits that bypass the style system. These are hard to find later.
- Repeating too much. A decorative border, a drop shadow, and a gradient on every element make the page noisy and remove the contrast needed for hierarchy. Repeat structure and key signals, not ornament.
- Inconsistent states. A button that looks different on hover in one section and not in another. States such as hover, focus, disabled, and error are part of the pattern too.
Auditing a layout for repetition
You can check a layout in a few minutes.
- List every element role: page title, section heading, body, caption, link, button, card.
- For each role, compare all instances. Do they share typeface, size, weight, color, and spacing?
- Collect the distinct values for color, font size, and spacing. If you find 11 sizes or 9 grays, you probably have drift.
- Look at the edges of the page. Do margins and header positions match from page to page?
- Fix at the source. Edit the style or token, not the individual instance.
A quick technique: squint at the layout or shrink it to a thumbnail. Repeated patterns show as matching shapes. Odd shapes are candidates for review.
Worked example: a three-card pricing section
Suppose a pricing section has three cards. The first draft has these problems: the first card's title is 24px bold, the second is 22px semibold, and the third is 24px bold in a different black. The padding is 20px, 24px, and 24px. Only the third card's button is filled.
Apply repetition step by step:
- Decide the title style once: 1.5rem, weight 700,
--color-text. - Set card padding to 24px on all three, using a token.
- Give all three buttons the same component style.
- Add one deliberate variation: the recommended plan gets the accent border and a filled button, while the other two use an outlined button.
.plan {
padding: var(--space-lg);
border: 1px solid var(--color-text);
}
.plan h3 {
margin: 0 0 var(--space-sm);
font-size: var(--text-h2);
font-weight: 700;
color: var(--color-text);
}
.plan--recommended {
border-color: var(--color-accent);
}Now the cards read as three options of the same kind, and the single difference points at the plan you want the reader to consider. The variation is meaningful because everything else matches.
Summary of decisions
- Repeat fonts, colors, spacing, and component designs for elements that share a role.
- Store repeated values in styles and tokens, and change them at the source.
- Keep scales short: a few type sizes, a few spacing steps, a small palette.
- Break the pattern only for a reason you can state.
- Audit by listing roles and counting distinct values.
Exercise
A landing page uses #0b5fff for links and the primary button, but a designer adds a new "Learn more" button in #0c60fe and gives it 14px vertical padding instead of the 8px used by other buttons. What repetition problems does this create, and how would you fix them in CSS?
Show answer
The color #0c60fe is a near-duplicate of #0b5fff, and the padding differs from the shared scale. Readers may not consciously see the difference, but the button looks slightly off and the design drifts. Fix it by using var(--color-accent) for the background and var(--space-sm) var(--space-md) for the padding, the same tokens as the other buttons. If the new button must look different, for example as a secondary action, make that a deliberate variant such as an outlined button, and document it.
Exercise
Name two cases where breaking a repeated pattern is good design and one case where it is a mistake. For each, say how you would justify it.
Show answer
Good: a featured pricing card with an accent border and filled button, because it marks the recommended choice. Good: a section opener page with a full-bleed image in a document that otherwise uses one grid, because it signals a new section. Mistake: changing one card's title from 24px to 22px because it "looked better there". You cannot explain it by the role of the element, so it is drift and should be reverted to the shared style.