Skip to main content

Baseline Grid

UI Design

What is a Baseline Grid

A baseline grid is a set of evenly spaced horizontal lines that text sits on. Each line of text has its baseline, the line most letters rest on, placed on the grid, so text across columns and components lines up.

How a Baseline Grid works

  • Grid unit: Often 4 points in UI design
  • Line heights: Set to multiples of the unit, such as 16, 20 or 24
  • Spacing: Margins between blocks also use multiples of the unit
  • Pairing: Commonly used with an 8-point grid for layout

When to use a Baseline Grid

Use a baseline grid in text-heavy designs, such as editorial pages, documentation and dashboards with side-by-side columns. It creates a steady vertical rhythm. For simple app screens, consistent line heights are often enough.

Baseline Grid on the web

CSS has no automatic baseline snapping, so designers keep line-height and spacing values on the grid. Treat the grid as a guide rather than an exact rule, and check the result in the browser.

Frequently asked questions

What is a baseline in typography?

The baseline is the invisible line that most letters sit on. Letters such as g, p and y have descenders that drop below it.

What size should a baseline grid be in UI design?

Many UI designers use a 4-point baseline grid, often together with an 8-point grid for layout. Line heights are then set to multiples of 4, such as 16, 20 or 24.

How do you use a baseline grid on the web?

Set line heights and vertical spacing to multiples of the grid unit. CSS does not snap text to a baseline grid by itself, so exact alignment depends on consistent line heights and margins.