Skip to content

Typography

Generated from $type-base and $type-ratio using a modular scale. Font families and weights generated from config maps.

See live demos →

Generated from $fonts merged with $font-overrides. One token per role:

TokenDefaultUsage
--font-bodyGeorgiaLong-form reading, paragraphs
--font-headingsystem-uih1–h6
--font-displayImpactDecorative, hero text
--font-uisystem-uiButtons, labels, form elements
--font-monoCourier NewCode, pre, kbd, samp

Adding a new key to $font-overrides generates a new --font-* token automatically.

Generated from $type-base (default 1rem) and $type-ratio (default 1.25 — Major Third):

TokenScale stepDefault value
--text-xs-2~0.64rem
--text-sm-1~0.8rem
--text-md01rem
--text-lg+1~1.25rem
--text-xl+2~1.563rem
--text-2xl+3~1.953rem
--text-3xl+4~2.441rem
--text-4xl+5~3.052rem

Change $type-ratio-override in config to scale the entire system proportionally.

TokenValue
--leading-none1
--leading-tight1.25
--leading-snug1.375
--leading-normal1.5
--leading-relaxed1.625
--leading-loose1.75
TokenValueUsage
--tracking-tight-0.02emLarge display text
--tracking-normal0emBody copy
--tracking-wide0.05emUppercase labels
--tracking-wider0.1emSpaced caps, badges

Generated from $font-weights merged with $font-weight-overrides. Defaults:

TokenValue
--font-weight-regular400
--font-weight-bold700