Usage
Typography is a layout-oriented text container that spaces paragraphs and styled lists (ul, ol, li) for readable vertical rhythm. It suits markdown-like content, help articles, and mixed text-plus-list instructions inside the product shell. The mental model is “document fragment,” not “single label.”
type | Purpose | Emphasis |
|---|---|---|
| Default | Comfortable reading | Body copy, help, onboarding |
| Data | Tighter vertical rhythm | Dense informational panels |
| Critical | Focused urgent copy | Keep sections short; still readable |
Typography is a vertical stack with token-driven gaps; lists receive indentation, markers, and colors from the system. List indentation is 1em, so it always matches the list's computed font size. Lists have no margin, list items have no inline padding, and --list-item-y-padding is applied only between sibling items. Headings inside the block should respect hierarchy relative to surrounding page headings.
h1 outside shouldn’t jump to h3 inside without reason).Do
type based on density of the surrounding page.Don’t