Typography
Mantle ships typography tokens for consistency and readability.
Scale
Mantle ships a general type scale for the headers throughout our products. Text styling is independent of the actual markup, so a Heading 1 can be styled as a Heading 2 or Heading 5 as appropriate.
Headings do not 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
Colors
When possible, render text with the following tokens. They add hierarchy outside of font size, and keep type the correct color across themes.
Strong
.text-strongBody
.text-bodyMuted
.text-mutedPlaceholder
.text-placeholderFonts
Mantle specifies Roobert as the default font for UI and headings. We also use JetBrains Mono as a monospace typeface, and Family for longform prose.