Skip to content

Typography

The bundled variable fonts are Space Grotesk for display, Inter for body and controls, and Martian Mono for code. Use the role variables instead of naming a font family directly.

Role Token Example class
Display and headings --nw-font-display nw-display, nw-h1 through nw-h6
Body and interface text --nw-font-sans nw-text-base, nw-lead, nw-prose
Code and identifiers --nw-font-mono nw-mono

Display: connection settings

Body: choose which events to receive.

Mono: channel.alerts

The size scale runs from --nw-text-2xs (0.6875rem) to --nw-text-7xl (4.5rem). Choose the heading tag for document structure and use the class for its appearance.