Typography
v1.0.1Updated 20 Jul 2026Themed typography component with a 15-step type ramp (display-2xl down to caption-xs), tones, alignment, weight, truncate, and line-clamp helpers.
Preview
Live · 8 storiesAll VariantsOpen ↗
▸Why this is recommendedtypographytextheadingcontent+3
Every Typography variant lined up for comparison.
Recommended for+14
- ✓Headings, body, captions in any composed surface
- ✓Marketing copy
- ✓Replacing raw <h1>/<p> for consistent ramp
Tags+6
typographytextheadingcontenttruncateallvariants
Features+4
- 15 variants from display-2xl to caption-xs
- Tones (default / muted / primary / success / warning / destructive)
- Alignment + weight overrides
- Truncate (1-line ellipsis) + lineClamp (n-lines clamp)
- Semantic element override (as)
Not recommended for−2
- ✕Raw markdown bodies (use Markdown)
- ✕Inline labels for inputs (use Label)
Install
Ask your agent, or call the MCP tool directly. The resolved bundle is written into your project.
Usage
Tick variants in the left menu — each adds a tab with that variant’s real story source, the same code the preview above renders.
Props
PropTypeRequired
variantRamp variant (e.g. heading-lg, body-md, caption-sm)
—toneColour tone
—alignText alignment
—weightFont weight override
—truncate1-line ellipsis
—lineClampClamp to N lines
—asSemantic element override
—Every tonal component shares the same tone × emphasis API, so the pair looks identical across Button, Badge, Alert and more.