Sub topic 8
Repetition: build consistency
Repetition means reusing the same visual choices across a layout: the same fonts, colors, spacing, and component styles. 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 or Canva, and that you know the usual elements: headings, body text, images, and buttons.
What repetition does
Repetition tells the reader that separate pieces belong together. When every section heading looks the same, the reader learns the pattern once and then stops thinking about it. They can spend attention on content.
Repetition also makes a layout look intentional. A page with three heading styles, five grays, and random gaps looks accidental, even if each choice is fine alone.
Repetition builds on the earlier principles. Proximity groups items on one page. Repetition links groups to each other. It also works with contrast: a heading style needs to differ from body text, and then it needs to stay the same every time it appears.
What to repeat
Repeat anything the reader can see and compare:
- Typefaces and their roles (one for headings, one for body)
- Sizes and weights for each level of text
- A small color palette with a fixed job for each color
- Spacing values between and inside groups
- Component styles such as buttons, cards, and icons
- Alignment, corner radius, border width, and line style
Repetition does not mean everything looks identical. It means the same kind of thing always looks the same. All primary buttons match each other. A primary button and a heading do not need to match.
Repetition in code: design tokens
A design token is a named value for a design decision, such as a color or a spacing step. In CSS, custom properties (variables) work as tokens. You define each value once and reuse it everywhere.
: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 --color-accent, so they read as the same family of clickable things. The spacing values follow a small scale (8, 16, 32), so gaps across the page are always related to each other. To change the accent color, you edit one line and every use updates.
Styles, tokens, and components
Design tools offer the same idea under different names. Figma has styles, variables, and components. Canva has brand kits. InDesign has paragraph and character styles.
Use them in this order of preference:
- Define text and color styles first. They cover the most ground.
- Turn recurring elements, such as a card or a button, into reusable components.
- Apply styles instead of overriding values by hand.
A reusable component is a single master that every copy follows. If you edit the master, all copies change. Hand-tweaking one copy breaks the link and creates the very inconsistency repetition is meant to prevent.
A worked example
Imagine a three-slide deck. Slide one has a 40 pt bold blue title. Slide two has a 36 pt regular black title. Slide three has a 44 pt bold green title. Each slide looks acceptable alone. Flipped through in order, the deck feels unplanned.
To fix it:
- Choose one title style: 40 pt, bold, dark blue.
- Place every title at the same position and left edge.
- Choose one body style and one accent color.
- Save these as slide master styles so new slides inherit them.
The deck now looks like one document.
Common errors
- Near-duplicates. Two grays that differ slightly, or paddings of 14px and 16px. They look like mistakes, not choices. Merge them into one value.
- Too many typefaces. More than two or three families weakens the pattern.
- Overrides. Hand-editing a component copy instead of changing the master.
- Repeating too rigidly. If every element is identical, nothing stands out. Repetition needs contrast to keep hierarchy.
- Inconsistent roles. Using the accent color for links on one page and for warnings on another teaches the reader the wrong meaning.
Check your understanding
Exercise
A page uses #0b5fff for links, #0c60fe for buttons, and #0a5af0 for icons. Which principle is weak, and what is the fix?
Show answer
Repetition is weak. The three blues are near-duplicates, so they look like accidents instead of one deliberate accent. Define a single token, such as --color-accent: #0b5fff, and use it for links, buttons, and icons.
Exercise
Name two things you should repeat in a layout and one reason not to repeat everything identically.
Show answer
Examples to repeat: heading style, spacing scale, button style, or color palette. Not everything should be identical because the layout then has no contrast, so the reader cannot tell what is most important.