Typography

A harmonious type scale based on the minor third ratio (1.2) for readable, balanced text.

Font Families

Sans (Default)

The quick brown fox jumps over the lazy dog.

--font-sans
Serif

The quick brown fox jumps over the lazy dog.

--font-serif
Mono

const greeting = "Hello, World!";

--font-mono

Font Sizes

Aa
--text-xs 12px
Aa
--text-sm 14px
Aa
--text-base 16px
Aa
--text-lg 18px
Aa
--text-xl 20px
Aa
--text-2xl 24px
Aa
--text-3xl 30px
Aa
--text-4xl 36px
Aa
--text-5xl 48px

Usage

Font Weights

Light --font-light
Normal --font-normal
Medium --font-medium
Semibold --font-semibold
Bold --font-bold

Line Heights

--leading-tight 1.25 Headings
--leading-snug 1.375 Subheadings
--leading-normal 1.5 Body text
--leading-relaxed 1.625 Long-form
--leading-loose 2 Spacious

Letter Spacing

Recommended Pairings

Page Title --text-4xl + --font-bold + --leading-tight
Section Heading --text-2xl + --font-semibold + --leading-snug
Body Text --text-base + --font-normal + --leading-normal
Caption --text-sm + --font-normal + --leading-normal
Code --text-sm + --font-mono