<!-- generated by scripts/gen-docs.mjs from docs/system/typography.md. Edit the source and rerun. -->
# Typography

## Description

All text is Manrope Variable at Tailwind's default sizes. Headings are semibold with tight letter spacing. Body text is regular. Labels and buttons are medium. Numbers in a column, and numbers that change, use tabular figures.

## Tokens

<!-- tokens:start type -->
| Token | Light | Dark | Role |
|---|---|---|---|
| `--type-xs` | `0.75rem` | same | A caption, an axis label, a badge |
| `--type-sm` | `0.875rem` | same | Body text in controls, tables and cards |
| `--type-base` | `1rem` | same | Body text in prose, and fields on a phone |
| `--type-lg` | `1.125rem` | same | A lead line |
| `--type-xl` | `1.25rem` | same | A section title |
| `--type-2xl` | `1.5rem` | same | A page title, a headline figure |
| `--type-4xl` | `2.25rem` | same | A hero figure |
| `--font` | `"Manrope Variable", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif` | same | All text |
| `--mono` | `ui-monospace, "SF Mono", Menlo, monospace` | same | Code, ids and keys |
<!-- tokens:end type -->

Sizes and weights are Tailwind's defaults. Each role uses these classes:

| Role                 | Classes                                  | Where                                                                  |
| -------------------- | ---------------------------------------- | ---------------------------------------------------------------------- |
| Page title           | `text-2xl font-semibold tracking-tight`  | one per page                                                           |
| Section heading      | `text-xl font-semibold tracking-tight`   | `Section`'s h2                                                         |
| Card or dialog title | `text-base font-semibold` | CardTitle, RailCard, DialogTitle, SheetTitle, PopoverTitle, EmptyTitle |
| Body                 | `text-sm`                                | paragraphs, rows, table cells                                          |
| Label, button        | `text-sm font-medium`                    | Button, Label, Pill, a tab                                             |
| Secondary text       | `text-xs text-muted-foreground`          | timestamps, counts, captions                                           |
| Badge                | `text-xs font-medium tabular-nums`       | Badge                                                                  |

## Specimens

None yet. The table above lists the classes for each role.

## Usage

| When                                         | Use                                                                                                                                           |
| -------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
| A heading                                    | a larger size, `tracking-tight` and `font-semibold`                                                                                           |
| A number in a column or a count that changes | `tabular-nums`. Tables, `time`, badges and progress values get it from the base styles.                                                       |
| Code, an id, a key                           | `font-mono`                                                                                                                                   |
| A long title or description                  | `text-balance` on titles and `text-pretty` on paragraphs. The base styles apply both to headings, `p`, `li` and `[data-slot$="description"]`. |

- `rule/typography-size-not-weight`: When a heading needs to stand out, make it larger with `tracking-tight` and use at most `font-semibold`, because `font-bold` is heavier than every title in the system. Evidence: app 386/386 weight classes in tsaglobal are normal, medium or semibold with 0 bold, apps/web/app (survey 2026-10-16); app 7/7 heading weights in adv-atlas sit between 600 and 650 (web/css/base.css). Check: lint rule/ban-bold once added; review.
  - Don't: `<h2 className="text-sm font-bold">Saved</h2>`
  - Do: `<h2 className="text-xl font-semibold tracking-tight">Saved</h2>`
- `rule/typography-steps-only`: When setting a text size, use a Tailwind step from `text-xs` to `text-3xl`, because one-off sizes such as 13px or 15px match no other screen. Evidence: app 734/770 text size classes in tsaglobal are steps (survey 2026-10-16); gate G-04 default. Check: lint rule/arbitrary-value (scripts/check-system.mjs).
  - Don't: `<p className="text-[13px]">Two drafts</p>`
  - Do: `<p className="text-sm text-muted-foreground">Two drafts</p>`
- `rule/typography-sentence-case`: When writing a label, title, button or table header, use sentence case, such as "Create event", because title case makes ordinary words look like names. Evidence: person D11; app 2/2 source apps use sentence case throughout (tsaglobal messages/_.ts, adv-atlas web/\**/_.tsx). Check: lint rule/ban-uppercase for the casing utilities; review of copy.
  - Don't: `<Button>Create New Event</Button>`
  - Do: `<Button>Create event</Button>`
- `rule/typography-mono-is-copyable`: When a value is code, an id, a key or a path, set `font-mono`, and set a duration, count or amount in the sans font with `tabular-nums`, because users read monospace text as something to copy. Evidence: app 2/2 source apps set `tabular-nums` on time and table (tsaglobal apps/web/app/app.css, adv-atlas web/css/base.css); principle heuristic: recognition rather than recall, monospace marks text to copy. Check: review.
  - Don't: `<span className="font-mono">2m 14s</span>`
  - Do: `<span className="tabular-nums">2m 14s</span> <code>run_8f2a91</code>`

## Accessibility

The smallest size is `text-xs` (12px), used for secondary text and badges in `--muted-foreground` or darker. On touch screens, inputs are at least 16px so iOS does not zoom when they get focus. The base styles set `max(16px, 1em)` under a coarse pointer. Text zoom to 200 percent has not been checked yet. Titles use balanced wrapping and paragraphs use pretty wrapping.

## Not tokens

- Line height comes with each size step. `text-sm` has its own line height.
- `tracking-tight` is `--tracking-tight` (-0.02em) in the theme, for headings of 20px and up; text at 16px and under keeps the face's own spacing.
- Weights 500 and 600 are Tailwind's `font-medium` and `font-semibold`. There is no weight token.
