Skip to content
Primer printing platePrimer

Type

Geist is Primer’s interface and reading face, shipped locally with its SIL Open Font License. Applications own page markup and composition. Load tokens before the foundation type stylesheet, preserving relative font paths.

<link rel="stylesheet" href="/dist/tokens.css">
<link rel="stylesheet" href="/styles/type.css">

Use data-primer-theme=“system” on the document root for system appearance and class=“primer” on the application root. Explicit light and dark values remain available.

Rule or role Purpose
.primer / font.body Geist, 15px interface text, normal body line height, tabular figures
.primer-display 36px display role; applications choose the semantic heading element
.primer-heading Section heading role
.primer-title Item title role
.primer-small 13px metadata
font.reading-size 17px long-form reading, independent of interface density
workspace.reading-measure 660px focused prose width
.primer-mono / font.mono System monospace for code, shortcuts, and figures
.primer-subdued / .primer-subtle Supporting readable text
.primer-accent Accent text; use the separate fill/on-fill pair for actions

Tracking, weight, and line height come from font.* roles. The folio recipe uses workspace.title-desktop and workspace.title-mobile rather than turning every page heading into a large display.

.application-prose {
max-inline-size: var(--primer-workspace-reading-measure);
font-size: var(--primer-font-reading-size);
line-height: var(--primer-font-line-height-body);
}

The earlier .primer-muted and .primer-error names remain compatibility aliases. The stylesheet supplies typography and focus foundations; it does not implement buttons, dialogs, navigation, or editor behavior. See component guidance.