docs/design/system/typography.md

Typography

One family, Geist, set through Quartz type roles. A role sets size, line height and weight in one class; do not add text-sm, font-semibold or tracking next to it. scripts/design/type-role-codemod.mjs moved the old ad-hoc sizes onto roles.

RoleSize / lineWeightUse
type-heading-lg32/36500standalone page titles (public pages)
type-heading24/28500first-run and error titles
type-heading-sm20/24500a record's name in a detail view, stat values
type-heading-xs16/20500dialog and sheet titles
type-label13/16500buttons, nav items, row titles, panel titles
type-label-sm12/16450metadata, table headers, counts
type-body14/20400paragraphs
type-body-sm13/18400descriptions under titles, empty-state lines
type-code, type-code-sm13, 12400ids, codes, timecodes
  • Add data for numbers so digits line up (tabular figures).
  • Mono only for what a person copies: codes, ids, timecodes.
  • Sentence case everywhere; no capitals or tracked-out labels.
  • Text color is a role: text-text-1 for primary text, text-text-2 for secondary, text-text-3 for metadata. All three pass 4.5:1 on every surface.