Skip to content

Typography tokens

Typography tokens control font families, sizes, and line height. Sprout uses a fluid scale (clamp) for sizes and system fonts only (no webfonts).

Size scale

TokenUse
--sp-text-xsSmall labels, captions
--sp-text-smSecondary text, code
--sp-text-baseBody text
--sp-text-mdSlightly larger body
--sp-text-lgSubheadings
--sp-text-xlh4
--sp-text-2xlh3, h2
--sp-text-3xlh1

Sizes use clamp() so they scale between a minimum and maximum with viewport. This keeps type readable on small and large screens.

Font and line height

TokenValue
--sp-fontsystem-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif
--sp-font-monoui-monospace, 'Cascadia Code', 'Fira Code', monospace
--sp-leading1.6 (body)
--sp-leading-tight1.2 (headings)

Use --sp-font for body and UI; use --sp-font-mono for code. No webfonts are loaded.

Body: var(--sp-font), var(--sp-text-base)

Code: var(--sp-font-mono)

MIT License · Lightweight by principle. Sustainable by design.