All foundations
THE FOUNDATION

Typography

A clear voice at every scale.

Version 1

About typography

Make hierarchy easy to understand at every size. UX Prototype uses DM Sans by default, with six alternative typeface options. Typography roles, spacing, and accessible behavior remain consistent when the family changes.

Our typography principles

Font families

The interface uses DM Sans, with six alternatives available in Themes. IBM Plex Mono distinguishes code and token names. A font change preserves semantic roles, accessible sizing, and wrapping behavior.

Text formatting

Formatting adds emphasis and context. Keep each treatment purposeful and do not use formatting as a substitute for a meaningful semantic element.

Font weight

Use a deliberate weight hierarchy. Regular is suited to reading, semibold highlights a label, and bold adds stronger emphasis.

Text alignment

Start alignment supports normal reading and adapts to writing direction. Center brief display copy sparingly. End alignment helps readers compare numeric values.

Line height

The source uses 150% for body copy and 120% for headings, rounded to the 4px rhythm where specified. Keep enough space between lines for accents and tall glyphs.

Paragraph spacing

Separate paragraphs visibly. A two-em gap is the source’s illustration; choose defaults to fit the content while supporting reader overrides without clipping.

Shared decisions give every component a familiar structure.

2em paragraph separation

Clear documentation explains how the parts fit together.

A visible pause between ideasThe highlighted spacer is twice the paragraph’s font size.

WCAG 1.4.12 requires support for user-applied spacing, including paragraph spacing of at least 2× the font size. It does not prescribe that value as the default for every paragraph.

Line length

The source’s preferred reading measure is 45–75 characters. The 80-character reference belongs to WCAG’s AAA visual-presentation criterion. Measure is a reading aid; allow text to reflow freely on small screens.

45 characters
75 characters
80 characters
100 characters
Compare four reading measuresThe bars are proportional schematics of 45, 75, 80, and 100 characters. The 100-character example illustrates a line that is harder to track.