Foundations

Typography

Headings, text, quotes, code, links, lists and prose on one type scale.

npx shadcn-svelte@latest add http://localhost:5173/r/typography.json

Headings

level sets the element (h1–h6); size sets the look, so a document outline never dictates visual size.

light

Display

Heading 1 — title-1

Heading 2 — title-2

Heading 3 — title-3

Heading 4 — headline

An h2 at headline size, muted

dark

Display

Heading 1 — title-1

Heading 2 — title-2

Heading 3 — title-3

Heading 4 — headline

An h2 at headline size, muted

Text

light

Lead introduces a page with a larger, quieter voice.

Body text is set at 16px with relaxed line-height and pretty wrapping, so paragraphs end without lonely words.

Callout is the size of controls and menus.

Footnote carries descriptions and helper text.

Caption · metadata · 2 min ago

Small, for fine print with weight.
dark

Lead introduces a page with a larger, quieter voice.

Body text is set at 16px with relaxed line-height and pretty wrapping, so paragraphs end without lonely words.

Callout is the size of controls and menus.

Footnote carries descriptions and helper text.

Caption · metadata · 2 min ago

Small, for fine print with weight.

Inline elements

light

Run pnpm build, then press ⌘ R. Inline code scales with its text: lead-sized. Links in text are always underlined; a standalone link only on hover; external links open in a new tab.

dark

Run pnpm build, then press ⌘ R. Inline code scales with its text: lead-sized. Links in text are always underlined; a standalone link only on hover; external links open in a new tab.

Quote and lists

light
Simplicity is not the absence of clutter; that's a consequence of simplicity.
— Jony Ive
  • Calm and precise
  • Physical motion
  • Concentric radii
  1. Install the theme
  2. Add components
  3. Ship
dark
Simplicity is not the absence of clutter; that's a consequence of simplicity.
— Jony Ive
  • Calm and precise
  • Physical motion
  • Concentric radii
  1. Install the theme
  2. Add components
  3. Ship

Prose

Raw HTML or rendered Markdown gets the same type scale as the components above.

light
dark