Sub topic 2
Grids and Shared Edges
Assume you know basic typography terms and can use a design or layout tool. This chapter focuses on four connected decisions: aligning elements, creating contrast, protecting legibility, and repeating styles.
Grids and shared edges
A grid is a set of guides that gives a layout predictable columns, rows, and margins. A shared edge occurs when related elements begin or end on the same guide. This visual connection makes the layout feel intentional.
Use a grid before placing content. Align headings, paragraphs, images, and buttons to the same column edge. Avoid centering one item or nudging another by eye unless the difference has a clear purpose.
Contrast: make differences obvious
Contrast creates hierarchy by making important differences clear. Use it deliberately through:
- Size: make a heading larger than supporting text.
- Weight: use bold text for a primary label, not every label.
- Color: reserve a strong accent for actions or key information.
- Typeface: pair distinct typefaces only when their roles are clear.
Weak contrast makes every element compete equally. Excessive contrast makes the page noisy. Start with one primary difference, then add smaller differences for secondary levels.
Color contrast and legibility
Color contrast is the difference between foreground and background. A pale gray paragraph on a white background may look elegant but become difficult to read. Check contrast for body text, controls, and important information rather than relying on personal judgment.
Do not communicate meaning through color alone. Pair color with text, position, weight, or an icon. This supports people with color-vision differences and users viewing the design in poor lighting.
> callout note > Use contrast to show importance, not decoration. If everything is bold, bright, or oversized, nothing has priority. > ```
Repetition: build consistency
Repetition means reusing visual choices such as colors, type styles, corner radii, and spacing. In code, CSS custom properties, sometimes called design tokens, store these choices in one place.
:root {
--accent: #0b5fff;
--space: 16px;
}
.button {
background: var(--accent);
padding: var(--space);
}
.link {
color: var(--accent);
}Consistent repetition helps users predict how the interface works. Review each component and ask whether its style belongs to the same system.
Exercise
A page has aligned content, but every heading uses a different size and color. Which principle should you apply first?
Show answer
Apply repetition by defining a small set of heading styles and reusing them consistently.