Font families
The three families the system sets, each in a specimen with its glyphs, the two weights in use and how figures are set.
Type has three family slots: one for the interface, one for titles and one for code. Two faces fill them, and the item installs both, so a product has its type the moment the item is added.
Body
The body family sets every label, row and paragraph of a product.
It loads once, as a variable font, and is used at two weights.
Captions and table headers are the same family at a smaller size.
- ABCDEFGHIJKLMNOPQRSTUVWXYZ
- abcdefghijklmnopqrstuvwxyz
- 0123456789
- . , : ; ? ' " ( ) [ ] { } / @ # & % * + = < >
font-sansEvery label, row and paragraph.- Value
var(--font-inter, "Inter Variable"), "Inter", ui-sans-serif, system-ui, sans-serif- Family
- Inter Variable
- Package
@fontsource-variable/inter^5.3.0- An app's own copy
- An app that loads the face itself sets
--font-interand the stack starts there.
Display
The display family sets titles
Out of the box it is the body family
A product can give its titles a face of their own
- ABCDEFGHIJKLMNOPQRSTUVWXYZ
- abcdefghijklmnopqrstuvwxyz
- 0123456789
- . , : ; ? ' " ( ) [ ] { } / @ # & % * + = < >
font-headingTitles. It is the body family until a product gives it another face.- Value
var(--font-body)- Comes to
var(--font-inter, "Inter Variable"), "Inter", ui-sans-serif, system-ui, sans-serif- Family
- Inter Variable
- Package
@fontsource-variable/inter^5.3.0- An app's own copy
- An app that loads the face itself sets
--font-interand the stack starts there.
Code
const radius = tokens.radius.control
bunx --bun shadcn@latest add @khaeli/button
Zero and the letter O, one and the letter l: 0O 1l
- ABCDEFGHIJKLMNOPQRSTUVWXYZ
- abcdefghijklmnopqrstuvwxyz
- 0123456789
- . , : ; ? ' " ( ) [ ] { } / @ # & % * + = < >
font-monoCode, token names and values.- Value
var(--font-geist-mono, "Geist Mono Variable"), ui-monospace, monospace- Family
- Geist Mono Variable
- Package
@fontsource-variable/geist-mono^5.3.0- An app's own copy
- An app that loads the face itself sets
--font-geist-monoand the stack starts there.
Weights
The system uses two weights, regular and medium. The item sets the heavier classes to
medium as well, so a component written with font-semibold or font-bold is drawn at
the same weight as one written with font-medium.
Regular, for running text
font-normal400Tailwind's ownMedium, for titles, labels and emphasis
font-medium500Tailwind's ownSemibold is drawn as medium
font-semibold500Set by foundationBold is drawn as medium
font-bold500Set by foundationExtrabold is drawn as medium
font-extrabold500Set by foundation
Figures
Figures are tabular everywhere, with nothing to add to a table or a price.
- Design
- 11,111.10
- Build
- 4,908.76
- Hosting
- 771.00
- Total
- 16,790.86
- Design
- 11,111.10
- Build
- 4,908.76
- Hosting
- 771.00
- Total
- 16,790.86
font-variant-numeric: tabular-nums on body, so every figure is the same width and a column of amounts lines up digit under digit. In the second column the widths differ and the digits drift.Swapping the families
A product may set --font-body, --font-display and --font-code to faces of its own.
That is all of type a product changes: the scale, the weights and the figures on these
pages stay as they are. Theming shows where the three are set.