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.

Geist

Mono · code, paths, IDs, logs

Aa

~/agents/research · run 4f2a91 · 1.2s

Geist Mono

Display · brand moments only

Aa

Your cloud computer, run by agents.

Bricolage Grotesque

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

ClassSizeExample
17 / 24Ledes and large body copy; titles use text-heading
14 / 20Primary UI text: messages, tables, inputs, buttons, nav
13 / 18Chart labels, timestamps, badge text
12 / 16Metadata, helper text
11 / 16Table column headers

text-ui is the default for product text. text-ui-cap is for uppercase labels; add uppercase with it.

Headings

ClassSizeExample
17 / 24Agents & providers
14 / 20Connected 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

ClassSizeExample
24 / 322,481
20 / 2886.4%

For metrics on dashboards and usage pages, never for text.

Weights

ClassWeightExample
400Regular: body text, descriptions, table cells
500Medium: labels, button text, form field names
600Semibold: headings, table headers, active nav

Three weights, and 600 is the heaviest in the product: there is no bold.

Style

ClassAppliesExample
--muted-foregroundSecondary text: helper copy, metadata, captions
--font-family-monoclaude-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.501,204.50
1,111.001,111.00
98.1098.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

ClassSizeExample
72 / ×1.1Matrix OS
48 / ×1.15Meet your agents
36 / ×1.2Connect a provider
28 / ×1.25Nothing here yet
11 / ×1.3New 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-nums to 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 like text-[15px].
  • Don't use font-bold in the product; 600 is the heaviest weight.