Skip to content

Layout — Typography

Each preset bundles a font-size / weight / line-height combination (caption sets a muted color instead of a line-height). Presets are plain switches — no @breakpoint form.

Heading — h3 preset
Body copy uses the p preset: a comfortable 1rem / 1.5 line height for running text.
A smaller p-sm line, tinted with color:muted.
CAPTION PRESET — small and muted by default.
<h2 and-text="h2 weight:bold">Title</h2>
<p and-text="p">Description</p>
PresetFont sizeWeightLine height
h13.75rem (6xl)700 bold1.1
h23rem (5xl)700 bold1.1
h32.25rem (4xl)600 semibold1.2
h41.875rem (3xl)600 semibold1.2
h51.5rem (2xl)500 medium1.3
h61.25rem (xl)500 medium1.3
p1rem (base)400 normal1.5
p-sm0.875rem (sm)400 normal1.5
p-xs0.75rem (xs)400 normal1.5
caption0.75rem (xs)400 normal— (muted color)
TokenValuesCSS property
align:*left, center, right, justifytext-align
weight:*thin, light, normal, medium, semibold, bold, extrabold, blackfont-weight
color:*primary, secondary, accent, muted, destructive, background, foregroundcolor

Weight numeric values: thin 100, light 300, normal 400, medium 500, semibold 600, bold 700, extrabold 800, black 900.

Right-aligned, bold
Tinted with color:destructive
<p and-text="align:right weight:bold">Right-aligned, bold</p>

align:*, weight:*, and color:* accept a @breakpoint suffix — see Overview → Responsive for the breakpoint table. The presets (h1caption) do not — there’s no h1@md, so this package can’t swap a whole type preset at a breakpoint on its own.

Recipes — the media object and toolbar patterns pair and-text presets with and-layout.