Typography Utilities

Adjust local type size and emphasis while preserving the library's semantic typography hierarchy.

Typography utilities are for local exceptions such as metadata, labels, or a display figure. Keep headings semantic—use the appropriate heading element before reaching for a size class.

Size scale

The scale runs from .text-xs, .text-sm, .text-base, .text-lg, and .text-xl through .text-2xl, .text-3xl, .text-4xl, .text-5xl, and .text-6xl.

Move through the type scale

UI and display steps share the theme's fluid typography tokens.

Extra-small metadata · Updated 4 minutes ago

Small supporting copy for compact interfaces.

Base text remains the ordinary reading size.

Large lead text introduces a section.

Display value: 12,480

Weight scale

Use .font-normal, .font-medium, .font-semibold, and .font-bold.

Match weight to information hierarchy

The same size can carry different emphasis without pretending ordinary text is a heading.

Normal

Body copy

Medium

Control label

Semibold

Section label

Bold

Strong emphasis

Semantic typography first

<h2>Semantic section heading</h2>
<p class="text-sm text-muted">Optional compact metadata</p>

For prose rhythm, heading relationships, captions, eyebrows, and CMS content, use the typography system rather than rebuilding those relationships with utilities.