Typography

Geist and Geist Mono on one size stack. Text in the product calls a role (body, body mono, label, heading), which sets its size, line height and weight together. Values are read from ds/tokens/typography.css.

Rules

  1. Every text calls a role. One class sets the size, the line height and the weight (and a heading's letter spacing). Never a raw size: no text-sm, text-xs, text-[11px] or text-13 in product code.
  2. Don't add a weight to a role. Body is 450, label 500, heading 600. Text that needs 500 is the label at that size. A weight class stays only for a state, such as the active row.
  3. No semibold under 15px. Text that was 13px semibold is label-2.
  4. No capitals. A small label is label-3 in sentence case, with no uppercase and no tracking.
  5. Mono text uses a mono role. Ids, keys, tool names and code are body-mono, never font-mono beside a size.
  6. The role brings its line height and spacing. Don't add leading-* or tracking-* beside a role. The text that still does is waiting on a decision.
  7. Nothing under 10px. The stack starts at 10. The avatar's initials are the exception: 40% of their circle, 6.4px at the smallest.

The stack

Ten sizes, each with its own line height. Same names as Paper: --text-17 there, text-17 here. Roles pick from it; product code doesn't.

text-1010px / 12pxEvery call checked against the rules
text-1111px / 14pxEvery call checked against the rules
text-1212px / 16pxEvery call checked against the rules
text-1313px / 20pxEvery call checked against the rules
text-1515px / 22pxEvery call checked against the rules
text-1717px / 24pxEvery call checked against the rules
text-1919px / 26pxEvery call checked against the rules
text-2424px / 30pxEvery call checked against the rules
text-2828px / 34pxEvery call checked against the rules
text-3636px / 40pxEvery call checked against the rules

Roles — Body

Reading text, at 450.

text-body-115px / 22px — 450Large reading text: the sign-in and not-found cardsEvery call checked against the rules
text-body-213px / 20px — 450The paragraph: table cells, descriptions, empty states, menu rows, field textEvery call checked against the rules
text-body-312px / 16px — 450Secondary lines: a row's second line, help under a field, captionsEvery call checked against the rules
text-body-411px / 14px — 450Dense metadata: graph labels, keyboard hintsEvery call checked against the rules
text-body-510px / 12px — 450Counters in chipsEvery call checked against the rules

Roles — Body mono

The body sizes and weight in the mono family.

text-body-mono-115px / 22px — 450A large id or valueEvery call checked against the rules
text-body-mono-213px / 20px — 450Ids, keys, tool names, code and JSONEvery call checked against the rules
text-body-mono-312px / 16px — 450An id on a row's second lineEvery call checked against the rules
text-body-mono-411px / 14px — 450Dense codeEvery call checked against the rules
text-body-mono-510px / 12px — 450Every call checked against the rules

Roles — Label

Names and controls, at 500.

text-label-115px / 22px — 500lg buttonsEvery call checked against the rules
text-label-213px / 20px — 500Names in rows, card and field titles, tabs, md and sm buttonsEvery call checked against the rules
text-label-312px / 16px — 500xs buttons, group labels, small section labels (sentence case)Every call checked against the rules
text-label-411px / 14px — 500xxs buttonsEvery call checked against the rules
text-label-510px / 12px — 500Tiny pillsEvery call checked against the rules

Roles — Heading

Titles, at 600, each with its own letter spacing.

text-heading-146px / 46px — 500 — -0.01emEvery call checked against the rules
text-heading-226px / 30px — 500 — -0.01emDiscover's titleEvery call checked against the rules
text-heading-324px / 30px — 500Create-page titles, big numbersEvery call checked against the rules
text-heading-422px / 28px — 500Page titlesEvery call checked against the rules
text-heading-515px / 22px — 500 — -0.01emSection titles in forms, empty-state titlesEvery call checked against the rules
text-heading-615px / 22px — 500Titles inside a cardEvery call checked against the rules

From the old classes

What each raw class in older code becomes. Under the switch text-sm is 13px and text-xs 12px, both at 400.

text-smtext-body-2
text-sm font-medium — text-sm font-semiboldtext-label-2
text-xstext-body-3
text-xs font-medium — text-xs font-semiboldtext-label-3
text-[11px] — with font-mediumtext-body-4 — text-label-4
text-[10px] — with font-mediumtext-body-5 — text-label-5
text-base — with font-mediumtext-body-1 — text-label-1
text-base font-semiboldtext-heading-6
text-lg font-semiboldtext-heading-5
text-xl font-semiboldtext-heading-4
text-2xl font-semibold — font-boldtext-heading-3
text-3xl font-semiboldtext-heading-2
text-sm font-mono — text-xs font-monotext-body-mono-2 — text-body-mono-3
text-xs uppercase tracking-wide (any weight)text-label-3, sentence case

Weight test (decided)

How the weights were picked: body at 450 rather than 400, labels at 500 rather than 550. Kept for reference; check dark mode too, where light text on dark reads heavier.

text-body-1
400

Every tool call is checked against the workspace rules before it reaches the model. Denied calls are logged with the rule that stopped them.

450 — current

Every tool call is checked against the workspace rules before it reaches the model. Denied calls are logged with the rule that stopped them.

text-body-2
400

Every tool call is checked against the workspace rules before it reaches the model. Denied calls are logged with the rule that stopped them.

450 — current

Every tool call is checked against the workspace rules before it reaches the model. Denied calls are logged with the rule that stopped them.

text-body-3
400

Every tool call is checked against the workspace rules before it reaches the model. Denied calls are logged with the rule that stopped them.

450 — current

Every tool call is checked against the workspace rules before it reaches the model. Denied calls are logged with the rule that stopped them.

text-label-2
500 — current
Register agentDeploy rulesWorkspace name
Allowed toolsLabel above a 450 paragraph, to judge the gap between them.
550
Register agentDeploy rulesWorkspace name
Allowed toolsLabel above a 450 paragraph, to judge the gap between them.
text-label-3
500 — current
Register agentDeploy rulesWorkspace name
Allowed toolsLabel above a 450 paragraph, to judge the gap between them.
550
Register agentDeploy rulesWorkspace name
Allowed toolsLabel above a 450 paragraph, to judge the gap between them.
Catalog
Foundations
  • Overview
  • Tokens
  • Token usage
  • Typography
  • Icons
Atoms
  • Avatar
  • Badge
  • Button
  • Checkbox
  • Color picker
  • Copy button
  • Icon tooltip
  • Inline code
  • Input
  • Hint
  • Kbd
  • Loader
  • Native select
  • Progress bar
  • Progress ring
  • Radio
  • Select
  • Status dot
  • Switch
  • Text link
  • Textarea
  • Tooltip
  • Truncate
Molecules
  • Accordion
  • Activity chart
  • AI elements
  • Alert
  • Button group
  • Card
  • Code block
  • Combobox trigger
  • Command
  • Context switcher
  • Dropdown menu
  • Empty state
  • Field
  • Field group
  • Filter chip
  • Flow
  • Icon picker
  • Metric card
  • Modal
  • Modal confirmation
  • Pagination
  • Popover
  • Scroll area
  • Sidebar
  • Table
  • Tabs
  • Toggle group
LibraryPublished release