Skip to content
UX Atlas
Plate FND·017 · UI foundationGrid D2 · Rev. 2026-08-14

Rhythm

Repeating spacing intervals create a pulse that makes long pages feel ordered.

UI foundationCraft conventionIntermediate

Definition

Rhythm is the pattern created by repeating intervals of space and size. Vertical rhythm specifically refers to consistent spacing between blocks of text, often based on a baseline unit derived from the body line height.

Craft convention. True because the industry converged on it. Breaking it costs familiarity, not correctness.

On this plate
  1. 1Definition
  2. 2Vertical rhythm in practice
  3. 3Establishing rhythm
  4. 4Keeping a vertical rhythm that survives real content
  5. 5In practice
  6. 6Local chart
  7. 7Continue from here

Reach for this when

  • Setting up spacing tokens.
  • Designing long-form or documentation layouts.
  • Long-form or content-heavy pages that read as uneven without any single element being wrong.

Common mistakes

  • Chasing a strict baseline grid at high cost for little perceptual gain.
  • Ad hoc margins that break the interval pattern.

Vertical rhythm in practice

A strict baseline grid, where every text baseline lands on a fixed interval, is difficult to maintain on the web because line heights, images and components rarely divide evenly. Most teams use a softer version: all vertical spacing comes from a single scale, and heading margins are set so the total block height stays on the scale.

The perceptible benefit comes from consistency of intervals, not from every baseline aligning. Aim for the first and accept the second where it falls out naturally.

Establishing rhythm

  • Pick a base unit, commonly 4px or 8px, and derive every vertical value from it.
  • Set heading spacing so the space above is roughly twice the space below, binding headings to their content.
  • Keep paragraph spacing consistent throughout a document.
  • Give repeating list items and cards identical vertical padding.
  • Allow deliberate breaks in rhythm to mark major transitions, which only reads as intentional if the rhythm is otherwise strict.

Keeping a vertical rhythm that survives real content

Do

  • Derive every vertical space from one scale, so repeated patterns fall on the same intervals.
  • Let headings take space from above rather than adding it below.
  • Collapse adjacent margins deliberately rather than discovering the collapse later.

Do not

  • Chase a strict baseline grid in an interface with mixed components and images.
  • Set a one-off margin to fix a single case, which is how rhythm decays.
  • Expect rhythm to survive if line heights are set per component.

In practice

  1. i.

    Article rhythm

    Long-form content

    Consistent intervals between paragraphs, headings and figures make a long article feel navigable. Irregular intervals make the same content feel disorganised even when it is well written.

  2. ii.

    The article that lost its rhythm at the image

    Where it breaks

    Text spaced on a consistent interval, then a figure with its own margins, and everything below sits half a step out. Images and embeds are where vertical rhythm is usually lost, and where a rule for them pays.

Local chart

FND·017 · Region II · Grid D2

This entry and the entries it is stated to connect with. Each line is labelled with what the connection means.

Each link says what the connection is, so you can tell a principle from an alternative from a thing people mix this up with.

Related concept

Connected closely enough to change how you apply this.