Retents UI

Typography

Font families, sizes, and weights used in the design system.

Font families

FontClassUsage
Geistfont-sansAll UI text — labels, buttons, body copy
JetBrains Monofont-monoCode blocks, technical values, numbers in data tables

theme.css registers both as --font-sans and --font-mono, so font-sans and font-mono work out of the box. The package does not ship the font files: load them in your app, for example with @fontsource-variable/geist and @fontsource-variable/jetbrains-mono.

Geist — Sans Serif

The quick brown fox jumps over the lazy dog

ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz 0123456789

JetBrains Mono — Monospace

const result = await fetchData()

ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz 0123456789

Weight scale

Normal 400Design systems bring consistency

Medium 500Design systems bring consistency

Semibold 600Design systems bring consistency

Bold 700Design systems bring consistency

Marketing scale

The Retents scale has 9 sizes, for any channel (site, decks, social). Do not use sizes outside it.

SizeLine heightUsage
72px / 4.5rem1.1Main hero, above the fold
48px / 3rem1.15H1 on inner pages
30px / 1.875rem1.25H2, section titles
24px / 1.5rem—Only as the low end of fluid (clamp) headings
20px / 1.25rem1.75Lead paragraph, H3
18px / 1.125rem1.75Main body on marketing pages
16px / 1rem1.625Secondary body, UI text
14px / 0.875rem1.5Labels, metadata, captions, buttons
12px / 0.75rem1.5Tags, badges, eyebrows

Headings from 30px up use -0.02em letter-spacing. Maximum weight is 700 (never 800 or 900). Hierarchy and usage rules: Brand → Tipografia.

Component scale

ClassSizeCommon usage
text-xs12pxBadges, captions, helper text
text-sm14pxButtons, form labels, table cells
text-base16pxBody text, descriptions
text-lg18pxSection headings, card titles
text-xl20pxPage section headings
text-2xl24pxPage titles

Font weights

ClassWeightUsage
font-normal400Body text, descriptions
font-medium500Buttons, labels, nav items
font-semibold600Headings, card titles
font-bold700Page titles, emphasis

On this page