Typography
Two families and one semantic type scale for every surface.
Gerstner carries display, headings, and body. It ships Regular and Bold, each with an italic; bold is Text’s only weight switch. Diatype Mono carries labels, buttons, pills, and meta. It has one face, is always uppercase and tracked looser, and ignores bold and italic.
'gerstner', 'gerstner Fallback''diatypeMono', 'diatypeMono Fallback'Fourteen semantic variants pair size, line height, weight, tracking, and family. The specimen keeps each row at its real Text variant.
display-lg · 48/52 · 700 · -0.5display-md · 40/44 · 700 · -0.5display-sm · 32/38 · 700 · -0.25page-title · 36/42 · 700 · -0.25heading-1 · 28/34 · 700 · -0.25heading-2 · 24/30 · 700 · -0.25heading-3 · 20/26 · 700 · 0heading-4 · 17/24 · 700 · 0body-lg · 17/26 · 400 · 0body-md · 15/22 · 400 · 0body-sm · 13/20 · 400 · 0label-lg · 15/20 · 400 · 0.6label-md · 13/18 · 400 · 0.8label-sm · 11/16 · 400 · 1caption · 11/16 · 400 · 0.6A composed album header shows how a small set of variants carries a page.
label-smeyebrowheading-1titlebody-lgreading copybody-smsupporting metacaptionquiet metadataPrefer a semantic variant. It sets size, line height, weight, tracking, and family together; override with font="sans" or font="mono" only when needed.
Choose a semantic variant for its role.
Do not set raw font styles for a text role.
import { useSwshdTheme } from "swshd/ThemeProvider";
import Text from "swshd/Text";
const { colors } = useSwshdTheme();
<Text variant="heading-2" color={colors.text.primary}>
Share the whole night
</Text>| Variant | Family | Size / line | Weight | Tracking | Uppercase |
|---|---|---|---|---|---|
display-lg | Gerstner Programm | 48 / 52 | 700 | -0.5 | No |
display-md | Gerstner Programm | 40 / 44 | 700 | -0.5 | No |
display-sm | Gerstner Programm | 32 / 38 | 700 | -0.25 | No |
page-title | Gerstner Programm | 36 / 42 | 700 | -0.25 | No |
heading-1 | Gerstner Programm | 28 / 34 | 700 | -0.25 | No |
heading-2 | Gerstner Programm | 24 / 30 | 700 | -0.25 | No |
heading-3 | Gerstner Programm | 20 / 26 | 700 | 0 | No |
heading-4 | Gerstner Programm | 17 / 24 | 700 | 0 | No |
body-lg | Gerstner Programm | 17 / 26 | 400 | 0 | No |
body-md | Gerstner Programm | 15 / 22 | 400 | 0 | No |
body-sm | Gerstner Programm | 13 / 20 | 400 | 0 | No |
label-lg | Diatype Mono | 15 / 20 | 400 | 0.6 | Yes |
label-md | Diatype Mono | 13 / 18 | 400 | 0.8 | Yes |
label-sm | Diatype Mono | 11 / 16 | 400 | 1 | Yes |
caption | Diatype Mono | 11 / 16 | 400 | 0.6 | Yes |