Skip to content
Chapter 07Practice7 min read

Type Scale Systems

Build harmonious font-size hierarchies using modular scales — Major Third, Perfect Fourth, Perfect Fifth, and the Golden Ratio.

A type scale is a predetermined set of font sizes derived from a single base size and a mathematical ratio. Rather than choosing sizes arbitrarily — 14px here, 22px there, 36px somewhere else — a modular scale produces sizes that relate to one another in predictable, visually coherent ways. The result is a hierarchy that feels intentional rather than improvised.

Every professional typography system — from Material Design to Tailwind CSS to custom design tokens — rests on some version of this principle. Understanding how ratios behave helps you choose the right scale for your project and know when to break it.

Why Modular Scales Work

Human perception is remarkably sensitive to proportion. When two sizes share a mathematical relationship, they feel related even if the viewer cannot articulate why. A heading at 2.369rem and body text at 1rem sit in a 1:2.369 relationship — close enough to the Perfect Fourth ratio (1.333) multiplied across several steps that the eye reads them as belonging to the same family.

Modular scales also solve a practical problem: decision fatigue. Once you commit to a base size and a ratio, every step in your hierarchy is defined. You stop debating whether the h3 should be 20px or 22px. The scale decides for you, and the decision is defensible.

The Major Third (1.25)

The Major Third ratio produces the most restrained, subtle hierarchy of the common scales. Each step increases by 25%, which means adjacent sizes differ only slightly. This makes it ideal for interfaces where typography must stay quiet — dashboards, admin panels, dense documentation, and data-heavy applications.

At a 16px base, a Major Third scale yields:

  • sm: 14px — captions, metadata, helper text
  • base: 16px — body copy
  • lg: 20px — lead paragraphs, emphasized body
  • xl: 25px — small headings, card titles
  • 2xl: 31.25px — section headings
  • 3xl: 39px — page titles

The compressed range means you can fit more distinct levels into a limited vertical space without sizes feeling wildly different. The trade-off is that display sizes lack dramatic impact. A hero headline at 6xl (61px) is present but not commanding.

Best for: SaaS dashboards, internal tools, technical documentation, mobile-first interfaces where screen real estate is scarce.

The Perfect Fourth (1.333)

The Perfect Fourth is the most widely adopted ratio in web typography. It strikes a balance between subtlety and contrast — enough difference between steps to establish clear hierarchy, but not so much that the scale feels theatrical. Tailwind CSS's default type scale approximates a Perfect Fourth progression.

At 16px base:

  • lg: 21.3px
  • xl: 28.4px
  • 2xl: 37.9px
  • 3xl: 50.5px
  • 4xl: 67.3px

Each level is roughly one-third larger than the previous, creating a rhythm that feels natural for editorial content, marketing pages, and general-purpose websites. Headings have presence without overwhelming body text. The jump from body to h1 is significant enough to signal importance immediately.

Best for: Blogs, marketing sites, product landing pages, general web content, design systems that need versatility.

The Perfect Fifth (1.5)

The Perfect Fifth ratio doubles the perceptual distance between steps. A 16px base produces an xl of 24px and a 2xl of 36px — jumps that are immediately noticeable. This scale excels when typography must carry strong visual weight: editorial magazines, portfolio sites, campaign landing pages, and brand-forward experiences.

The wider intervals mean fewer steps fit comfortably between body text and display sizes. You typically use 4–5 levels rather than 7–8. Attempting to use every step in a Perfect Fifth scale often produces sizes that feel too close together at one end and too far apart at the other.

Best for: Editorial design, portfolios, hero-driven landing pages, brand campaigns, any context where type is a primary design element.

The Golden Ratio (1.618)

The Golden Ratio (φ) is the most aggressive common scale. Derived from the Fibonacci sequence and found throughout nature and classical architecture, it produces dramatic size contrasts. A 16px base yields an xl of 25.9px, a 2xl of 41.9px, and a 3xl of 67.8px — each step a substantial leap.

Golden Ratio scales work best for display-heavy layouts with generous whitespace. The large jumps between steps mean each size level has a distinct role with little ambiguity. However, the scale can feel excessive for UI work — button labels and form inputs at golden-ratio-derived sizes may appear disproportionate.

Best for: Luxury brands, editorial hero sections, exhibition catalogs, artistic portfolios, print-inspired web design.

Comparing the Ratios

| Ratio | Value | Character | Typical Use | |-------|-------|-----------|-------------| | Major Third | 1.25 | Restrained, dense | UI, dashboards, docs | | Perfect Fourth | 1.333 | Balanced, versatile | General web, blogs | | Perfect Fifth | 1.5 | Bold, editorial | Marketing, portfolios | | Golden Ratio | 1.618 | Dramatic, luxurious | Display, brand hero |

Building Your Scale in Practice

A complete type scale typically includes eight to ten steps spanning from caption sizes to display sizes. Name them semantically rather than by pixel value: text-sm, text-base, text-lg, through text-6xl. Semantic naming lets you adjust underlying values without refactoring every component.

When implementing in CSS, define your scale as custom properties:

css
:root {
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.333rem;
  --text-2xl: 1.777rem;
  --text-3xl: 2.369rem;
  --text-4xl: 3.157rem;
}

These values assume a Perfect Fourth ratio with a 16px base. Adjust the base and ratio to match your project's needs.

Pairing Scale with Weight

Size alone does not create hierarchy — weight and spacing complete the picture. A common pattern: body text at regular weight (400), subheadings at medium (500), headings at semibold (600) or bold (700). As sizes increase, letter-spacing typically decreases (tight tracking on large display type) and line-height decreases proportionally (display text at 1.1–1.2, body at 1.5–1.65).

Interactive Scale Calculator

Use the calculator below to explore how different base sizes and ratios produce complete type scales. Adjust the values to see pixel and rem outputs for every step, and copy the generated CSS variables directly into your project.

Type Scale Calculator
SteprempxPreview
xs0.5639Ag
sm0.7512Ag
base116Ag
lg1.33321.3Ag
xl1.77728.4Ag
2xl2.36937.9Ag
3xl3.15750.5Ag
4xl4.20967.3Ag
5xl5.6189.8Ag
6xl7.478119.7Ag
:root {
  --text-xs: 0.563rem;
  --text-sm: 0.75rem;
  --text-base: 1rem;
  --text-lg: 1.333rem;
  --text-xl: 1.777rem;
  --text-2xl: 2.369rem;
  --text-3xl: 3.157rem;
  --text-4xl: 4.209rem;
  --text-5xl: 5.61rem;
  --text-6xl: 7.478rem;
}

Choosing the Right Ratio

There is no universally correct ratio — the decision depends on your content density, brand personality, and viewport constraints. Use this decision framework:

  1. Count your hierarchy levels. If you need six or more distinct sizes in a compact layout, lean toward Major Third. If you need only three or four levels with strong contrast, Perfect Fifth or Golden Ratio may serve better.

  2. Consider your audience and context. Data tools and developer documentation benefit from restraint. Brand campaigns and editorial content benefit from boldness.

  3. Test at both extremes. Preview your smallest step (captions, labels) and largest step (hero headlines) together. If the smallest feels cramped or the largest feels absurd, adjust your base size before changing the ratio.

  4. Validate across viewports. A scale that works on desktop may produce oversized mobile headlines. Pair your static scale with fluid typography techniques (covered in later chapters) for responsive refinement.

A well-chosen type scale is invisible when done right — readers perceive clear hierarchy without noticing the system beneath it. That invisibility is the mark of professional typographic craft.