Typography
DM Sans for prose, DM Mono for code and labels. A modular scale built for readability.
Font Families
DM Sans — The quick brown fox
Primary font. Used for headings, body text, and UI labels.
font-family: var(--font-sans)DM Mono — The quick brown fox
Monospace font. Used for code, tokens, and technical labels.
font-family: var(--font-mono)Type Scale
Page titles. text-4xl font-bold tracking-tight
The quick brown fox
Section headers. text-3xl font-semibold tracking-tight
The quick brown fox
Sub-sections. text-2xl font-semibold tracking-tight
The quick brown fox
Card headers. text-xl font-semibold tracking-tight
The quick brown fox
Body text. text-base leading-7
The quick brown fox jumps over the lazy dog. Pack my box with five dozen liquor jugs.
Intro paragraphs. text-xl text-muted-foreground
The quick brown fox jumps over the lazy dog.
Emphasized text. text-lg font-semibold
Captions and metadata. text-sm font-medium
Secondary text. text-sm text-muted-foreground
The quick brown fox
Inline code. font-mono bg-muted rounded px-1
npm install substrateui to get started.Monospace labels. font-mono tracking-tight
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
className | string | — | Additional CSS classes |
childrenrequired | React.ReactNode | — | Text content |
asChild | boolean | false | Render as child element (H1-H4 only) |