Skip to content
Type & iconsMarkdown

Typography

Typography pairs Sora for display and UI copy with JetBrains Mono for code, tokens, and numeric tables. Headings scale fluidly between 320px and 1920px via clamp(), while body text stays fixed at 16px.

Font families

TokenTailwindStackUse
--font-displayfont-displaySora, system-ui, -apple-system, sans-serifDisplay and headings
--font-sansfont-sansSora, system-ui, -apple-system, sans-serifBody copy and UI controls
--font-monofont-mono"JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospaceCode, tokens, tabular numbers

Apply tabular-nums on every data table, metric, and token list so columns of numbers align vertically.

Fluid and fixed type scale

StepTailwind320px (size / lh)1920px (size / lh)Mode
captiontext-caption12px / 16px12px / 16pxFixed
bodytext-body16px / 24px16px / 24pxFixed
body-lgtext-body-lg20px / 28px20px / 28pxFixed
h6text-h620px / 28px20px / 28pxFixed
h5text-h520px / 28px24px / 32pxFluid clamp
h4text-h424px / 32px32px / 40pxFluid clamp
h3text-h332px / 40px40px / 48pxFluid clamp
h2text-h232px / 40px52px / 60pxFluid clamp
h1text-h140px / 48px68px / 76pxFluid clamp
displaytext-display52px / 60px88px / 96pxFluid clamp

Step specimens

text-caption (12–12px)

Architectural monochrome 0123456789

text-body (16–16px)

Architectural monochrome 0123456789

text-body-lg (20–20px)

Architectural monochrome 0123456789

text-h6 (20–20px)

Architectural monochrome 0123456789

text-h5 (20–24px)

Architectural monochrome 0123456789

text-h4 (24–32px)

Architectural monochrome 0123456789

text-h3 (32–40px)

Architectural monochrome 0123456789

text-h2 (32–52px)

Architectural monochrome 0123456789

text-h1 (40–68px)

Architectural monochrome 0123456789

text-display (52–88px)

Architectural monochrome 0123456789

Line heights snap to the 4px grid at both viewport bounds. Body text never drops below 16px so mobile browsers do not auto-zoom focused inputs.

Usage

Apply typography utilities in Tailwind CSS or --text-* variables in CSS:

<section>
  <h2 className="font-display text-h2 font-semibold tracking-tight">
    Section title
  </h2>
  <p className="mt-4 font-sans text-body">
    Body copy stays at 16px across every viewport.
  </p>
  <p className="mt-2 font-mono text-caption tabular-nums">
    1,024.00 ms
  </p>
</section>
.metric-value {
  font-family: var(--font-mono);
  font-size: var(--text-body);
  line-height: var(--text-body--line-height);
  font-variant-numeric: tabular-nums;
}

Do and don't

Do: Keep body at 16px and apply tabular-nums to metrics
Use text-body (16px / 24px) for prose and inputs, and add tabular-nums to tables, timers, and numeric readouts.
Don't: Use off-scale Tailwind text sizes or drop body below 16px
Do not write text-sm, text-base, or text-lg because default Tailwind type classes are disabled and sub-16px inputs trigger iOS zoom.

Accessibility

  • Keeping body at 16px (1rem) prevents forced viewport zoom on iOS form inputs and supports browser text scaling.
  • Fluid clamp() expressions use rem + vw units so user zoom preferences still scale headings proportionally.

Rationale

Deriving steps from √φ (≈1.272) and snapping line heights to 4px creates consistent vertical rhythm without media-query font jumps.