Skip to main content

Typography

The type scale, text colors, and fonts for mantle UI.

Scale

The type scale sets the size of each heading level. It's separate from the markup, so an <h1> can use the Heading 2 style when the layout needs it.

Headings don't set a font family. They inherit the body font, so keep font-sans, font-family, and font-mono off them.

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5

Heading 6

LevelSizeWeightAdditional
Heading 1text-5xlfont-medium
Heading 2text-3xlfont-medium
Heading 3text-2xlfont-medium
Heading 4text-xlfont-medium
Heading 5text-basefont-medium
Heading 6text-xsfont-mediumuppercase tracking-widest

Colors

Color text with these tokens. They set hierarchy without a size change, and each one has a value for every theme.

Strong.text-strong
Body.text-body
Muted.text-muted
Placeholder.text-placeholder
TokenClassDescription
Strong.text-strongHigh emphasis, for primary content.
Body.text-bodyDefault body text.
Muted.text-mutedLow emphasis, for secondary text.
Placeholder.text-placeholderLowest emphasis, for placeholders.

Fonts

Roobert is the default font for UI and headings. JetBrains Mono sets code, and Family sets long-form prose.

ClassFont familyDescription
font-sans"Roobert", ui-sans-serif, system-ui, sans-serifThe page default, for UI and headings.
font-family"Family", "Georgia", serifFor long-form prose, such as documentation. Not for headings.
font-mono"JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospaceFor code and tokens. Set it one size step below the text around it.