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
- 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.
- 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.
- No semibold under 15px. Text that was 13px semibold is label-2.
- No capitals. A small label is label-3 in sentence case, with no uppercase and no tracking.
- Mono text uses a mono role. Ids, keys, tool names and code are body-mono, never font-mono beside a size.
- 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.
- 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.
Roles · Body
Reading text, at 450.
Roles · Body mono
The body sizes and weight in the mono family.
Roles · Label
Names and controls, at 500.
Roles · Heading
Titles, at 600, each with its own letter spacing.
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.
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.
Every tool call is checked against the workspace rules before it reaches the model. Denied calls are logged with the rule that stopped them.
Every tool call is checked against the workspace rules before it reaches the model. Denied calls are logged with the rule that stopped them.
Every tool call is checked against the workspace rules before it reaches the model. Denied calls are logged with the rule that stopped them.
Every tool call is checked against the workspace rules before it reaches the model. Denied calls are logged with the rule that stopped them.
Every tool call is checked against the workspace rules before it reaches the model. Denied calls are logged with the rule that stopped them.
Every tool call is checked against the workspace rules before it reaches the model. Denied calls are logged with the rule that stopped them.