Start with Your Base Size
Every type system begins with one number: your base font size. For web, 16px is the standard — it's the browser default and reads comfortably on most screens. For dense UIs (dashboards, admin panels), 14px works. For reading-heavy content, 18px.
The base size is your body text. Everything else is derived from it using a type scale ratio.
Never go below 14px for body text. If your UI feels cramped, the fix is usually increasing base size, not adding more spacing.
Weight and Color Create Hierarchy (Not Just Size)
Here's the most common typography mistake: using too many font sizes for hierarchy. In reality, you need at most 3 sizes for most UIs — small, base, and large.
The real hierarchy tools are font weight and color. A bold 16px heading with 95% lightness is clearly a heading. Regular weight 16px body text at 60% lightness is clearly secondary. Same size, completely different hierarchy level.
The 60% lightness sweet spot works beautifully for body text on dark backgrounds — readable but clearly subordinate to headings.
Article Heading
This is body text at your base size. Good typography creates hierarchy through weight and color, not just size. Notice how changing lightness creates subtle emphasis levels.
Caption text — smaller size for meta information and secondary content.
Use weight and color for hierarchy, not just size. 3 sizes is enough for most UIs. The 60% lightness sweet spot works great for body text on dark backgrounds.
Line Height Is Invisible Spacing
Line height does double duty: it makes text readable AND creates visual spacing between elements. Body text needs 1.5-1.7x line height for comfortable reading. Headings need less — 1.1-1.3x — because large text already has built-in optical spacing.
Here's the trick: generous line height on body text means you need less margin between paragraphs. The text breathes on its own.
Type Scales: The Math Behind Good Typography
A type scale is a set of font sizes generated from a ratio. You take your base size and multiply up (or divide down) by the ratio. Popular scales include Minor Third (1.2x), Major Third (1.25x), and Perfect Fourth (1.333x).
Smaller ratios (1.125-1.2) give you subtle size differences — great for dense UIs. Larger ratios (1.25-1.333) create dramatic contrast — better for marketing pages and editorial content.
The key insight: using a mathematical scale means your sizes always feel harmonious together, even if you can't explain why.
For most web apps, the Minor Third scale (1.2) is the sweet spot. Enough contrast for clear hierarchy without dramatic jumps.
Key Takeaways
Related Guides & Tools
How to Fix Boring UIs with Depth
Create visual depth with layered shades, shadows, and highlights.
GuideThe Golden Rule: Don't Make Me Think
Master the principles of effortless, convention-driven UI design.
GuideWeb Animations That Actually Matter
Master CSS transitions, timing functions, and animations that improve UX.
GuideThe Easy Way to Pick Right Spacing
Master rem-based spacing for consistent, beautiful layouts.
GuideHow to Pick the Right Colors for UI
Learn the HSL color system, build full palettes, and master dark/light mode.
Want the full picture?
This free tool checks one slice of UX.
Picopi audits your entire page — issues, screenshots, and fixes — web or mobile.