A quieter default for interface text
Title, description, and metadata share a deliberate hierarchy while the document keeps its native heading structure.
Semantic text roles that keep visual hierarchy separate from document structure.
Title, description, and metadata share a deliberate hierarchy while the document keeps its native heading structure.
Copy the command below and run it in your terminal.
Choose a role for meaning, then use class for a local exception.
Each primitive owns typography and color, but never margins or surrounding layout.
h1-h6 --font-header / document heading scale / --font-weight-headerp 1rem / --font-weight-description / foreground-mutedp 1rem / --font-weight-body / foregroundp --font-size-body / --font-weight-body / foreground-mutedcode --font-mono / --radius-sm / secondaryh1-h6 --font-header / --font-size-header / --font-weight-headerp --font-size-body / --font-weight-description / --tracking-bodyspan --text-xs / --font-weight-body / --tracking-bodyKeep semantic levels explicit and add numeric treatment only where values are compared.
Use the heading that matches the document outline. Compact component titles remain
available through Typography.Title.
Choose a paragraph role from its relationship to the surrounding content, not from a standalone size or color.
Lead text introduces a page or a significant section.
Body text carries longer explanations at a comfortable reading size and rhythm.
Supporting text adds quieter instructions, context, or qualifications.
Use InlineCode for commands, paths, and short
identifiers within prose.
Add tabular-nums when readers compare
values in a column.
Typography.Title - Renders an explicit heading level.
Typography.H1 - Renders the primary document heading.
Typography.H2 - Renders a document section heading.
Typography.H3 - Renders a document subsection heading.
Typography.H4 - Renders a fourth-level document heading.
Typography.H5 - Renders a subdued fifth-level heading.
Typography.H6 - Renders a subdued sixth-level heading.
Typography.Text - Renders lead, body, or supporting prose.
Typography.InlineCode - Renders code within prose.
Typography.Description - Renders supporting text.
Typography.Metadata - Renders compact secondary information.
bunx @sivir-ui/svelte add typography