Typography
Geist, five sizes, three weights. Hierarchy comes from weight and whitespace, not from ever-bigger text. Bricolage Grotesque is kept for brand moments.
Usage
// One size class, then weight and color classes on top; they stack freely.
<h2 className="text-heading">Agents and providers</h2>
<p className="text-ui">Connect a model to start chatting.</p>
<p className="text-ui-xs text-muted-foreground">Updated 2 minutes ago</p>
<span className="text-metric tabular-nums">2,481</span>/* Plain CSS: every size has a size + line-height pair */
.note {
font-family: var(--font-family-sans);
font-size: var(--type-ui-size);
line-height: var(--type-ui-leading);
}If you merge classes with shadcn's cn(), use the version in Start here, step 3: it teaches the merge helper the Matrix sizes. Without it, cn('text-ui', 'text-muted-foreground') drops the size.
Reach for a class first; the raw tokens are there for custom CSS. text-ui (14/20) is the same as shadcn's text-sm, so shadcn components already sit on the scale.
Fonts
Sans · all product UI
Aa
Connect a model to start chatting with your agents.
Mono · code, paths, IDs, logs
Aa
~/agents/research · run 4f2a91 · 1.2s
Display · brand moments only
Aa
Your cloud computer, run by agents.
The families are tokens (--font-family-sans, --font-family-mono, --font-family-heading) with system fallbacks, so you never write a font stack yourself. Load Geist, Geist Mono and Bricolage Grotesque with next/font/google (see app/layout.tsx).
Type scale
| Class | Size | Example |
|---|---|---|
| 17 / 24 | Ledes and large body copy; titles use text-heading | |
| 14 / 20 | Primary UI text: messages, tables, inputs, buttons, nav | |
| 13 / 18 | Chart labels, timestamps, badge text | |
| 12 / 16 | Metadata, helper text | |
| 11 / 16 | Table column headers |
text-ui is the default for product text. text-ui-cap is for uppercase labels; add uppercase with it.
Headings
| Class | Size | Example |
|---|---|---|
| 17 / 24 | Agents & providers | |
| 14 / 20 | Connected models |
Product headings are Geist semibold and stop at 17px. text-heading-sm (14/20) is a sub-heading that still outranks body text through weight.
Display numbers
| Class | Size | Example |
|---|---|---|
| 24 / 32 | 2,481 | |
| 20 / 28 | 86.4% |
For metrics on dashboards and usage pages, never for text.
Weights
| Class | Weight | Example |
|---|---|---|
| 400 | Regular: body text, descriptions, table cells | |
| 500 | Medium: labels, button text, form field names | |
| 600 | Semibold: headings, table headers, active nav |
Three weights, and 600 is the heaviest in the product: there is no bold.
Style
| Class | Applies | Example |
|---|---|---|
| --muted-foreground | Secondary text: helper copy, metadata, captions | |
| --font-family-mono | claude-sonnet-5-5 · ~/agents/research |
Geist Mono is for machine text: code, file paths, model and run IDs, logs. Use it at the same size classes as Geist.
Tabular numbers
| Proportional (default) | Tabular · |
|---|---|
| 1,204.50 | 1,204.50 |
| 1,111.00 | 1,111.00 |
| 98.10 | 98.10 |
Proportional figures are the default. Add tabular-nums to columns of figures and to live counters, so digits don't shift as they change.
Brand scale
| Class | Size | Example |
|---|---|---|
| 72 / ×1.1 | Matrix OS | |
| 48 / ×1.15 | Meet your agents | |
| 36 / ×1.2 | Connect a provider | |
| 28 / ×1.25 | Nothing here yet | |
| 11 / ×1.3 | New in Matrix |
Bricolage Grotesque from DESIGN.md, for onboarding, empty states, the welcome screen and marketing. Never in dense UI: menus, tables, settings or chat.
Guidelines
- Never introduce a new size. The five product steps, two headings and two metric sizes are the whole product scale.
- Use the Tailwind class; it pairs each size with its line height. In plain CSS, always use the size and leading tokens together.
- Build hierarchy with weight and whitespace, not size jumps.
- Keep Bricolage for brand moments; product headings are Geist semibold.
- Add
tabular-numsto columns of figures and to numbers that update live. - Don't use Tailwind's default sizes (
text-base,text-lg,text-xl) or arbitrary sizes liketext-[15px]. - Don't use
font-boldin the product; 600 is the heaviest weight.