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.
Considered details.ABCDEFGHIJKLMNOPQRSTUVWXYZ
abcdefghijklmnopqrstuvwxyz · 0123456789
0123456789 → () [] </>
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.
Clear decisions help
people build together.
Clear decisions help
people build together.
$12.00
$148.50
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.
Good documentation gives people
a clear path from an idea
to a working experience.
Many possibilities.
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.
Clear documentation explains how the parts fit together.
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.