🔠 One toolkit,
every design task

Typography Scale Generator

Generate a harmonious modular type scale with golden ratio, major third, and other classic ratios. Preview sizes visually and copy the full CSS.

English 中文 日本語 한국어 Español Português Français Deutsch العربية हिन्दी ไทย Tiếng Việt Bahasa Русский

🔠 Typography Scale Generator

Typography Scale Guide

A typography scale is a set of font sizes that follow a consistent mathematical ratio. Instead of choosing sizes randomly, each step is multiplied by the same ratio — creating visual rhythm and hierarchy across headings, body text, and captions.

Choose a base size (16px is the browser default and a solid starting point), then pick a ratio. Smaller ratios like 1.125 create subtle, elegant scales for editorial sites; larger ratios like 1.618 create dramatic contrast for marketing pages.

Pro Tips

What is a typographic scale

A typographic scale is a fixed set of font sizes that follow one mathematical ratio, so every step relates to the next with the same proportion. Instead of picking sizes by eye — 14, 17, 22, 31... — you pick a base size and multiply (or divide) it by the ratio again and again: 16 × 1.25 = 20, × 1.25 = 25, and so on. The result is a hierarchy that feels intentional: headings, body, captions and labels all look like members of the same design system rather than a random pile of sizes.

Modular scale ratios compared

Common ratios behave differently. 1.125 and 1.2 create subtle, elegant steps — ideal for dense, text-heavy interfaces where the size changes should whisper. 1.25 and 1.333 are the workhorses of the web: noticeable hierarchy without drama, and 1.333 happens to be the classic musical perfect fourth. 1.5 produces bold jumps for content sites. 1.618 — the golden ratio — is striking but aggressive: beautiful for display headings and marketing pages, usually too much for long-form reading.

Choosing your base font size

16px is the browser default and the right starting point for body text on desktop: it matches the reading comfort of printed books, is legible for most users, and aligns with accessibility guidance. Mobile interfaces can start slightly smaller (15px) or stay at 16px. Once the base is fixed, derive everything else from it — headings by multiplying up, captions and labels by dividing down — so a single change to the base re-tunes the whole hierarchy consistently.

Line height and vertical rhythm

A scale is more than font sizes. Line height should grow as text size shrinks: 1.5–1.6 for body copy, 1.2–1.4 for headings. For vertical rhythm, multiply your base size by the scale ratio to build spacing steps — if your scale is 16/20/25/31, those same numbers can serve as margin and padding increments. When font sizes and spacing share one ratio, every element snaps to an invisible grid and the page feels composed rather than assembled.

Responsive typography with clamp()

Type should scale fluidly between mobile and desktop. Modern CSS makes this one line: font-size: clamp(1rem, 0.7rem + 1.2vw, 1.75rem) — a minimum, a fluid middle, and a maximum. Set the min and max from your scale (e.g. 16px to 28px) and the viewport term does the rest, so headings shrink gracefully on phones and grow on monitors without a single media query.

Frequently Asked Questions

Q: What is a modular scale?
What is a modular scale? A modular scale is a series of sizes derived from a base size multiplied repeatedly by a fixed ratio — the same math behind musical scales.
Q: Which ratio should I choose?
Which ratio should I choose? Start with 1.333 (perfect fourth) for general web use. Use 1.2 for dense interfaces, 1.5 for bold marketing sites, and 1.618 for dramatic editorial designs.
Q: Why is 16px the standard base size?
Why is 16px the standard base size? 16px is the default root font size in all browsers. Basing your scale on it ensures consistency when users change browser zoom or accessibility settings.
Q: Should I use rem instead of px?
Should I use rem instead of px? Yes. Define the scale in px but apply with rem for accessibility: 1rem equals the root font size, so rem-based sizes scale with user preferences.
Q: How many steps does a scale need?
How many steps does a scale need? 6-8 steps cover most needs: caption, small, body, h4-h1 range, and a display size. More steps add maintenance without much benefit.
Q: What is the best typography scale ratio?
What is the best typography scale ratio? For body-heavy sites use 1.125–1.333; for display headings and marketing pages 1.5 or 1.618 looks striking.
Q: What base font size should I use?
What base font size should I use? 16px is the browser default and the standard for desktop body text; mobile can start at 15px.
Q: How do I make typography responsive?
How do I make typography responsive? Use clamp() with rem: font-size: clamp(1rem, 0.7rem + 1.2vw, 1.75rem) — min, fluid middle, max.

CSS Named Colors & Color Psychology

The web has 148 named colors built into CSS, from Coral to Goldenrod. Beyond the code, color psychology shapes how users feel about interfaces — warm tones energize, cool tones calm, and neutrals build trust. This palette mixes CSS classics with the psychology behind them.

Coral #FF7F50

Warm and friendly — popular for CTAs in lifestyle brands

Tomato #FF6347

Energetic red-orange, great for urgent accents

Goldenrod #DAA520

Earthy gold associated with quality and heritage

Teal #008080

Balanced blue-green — calm, trustworthy, professional

Indigo #4B0082

Deep violet tied to wisdom and premium brands

Crimson #DC143C

Bold red for passion, alerts, and strong emphasis

SlateBlue #6A5ACD

Soft purple-blue common in SaaS dashboards

ForestGreen #228B22

Nature and growth — the color of eco and finance brands

HotPink #FF69B4

Playful and bold, the signature of youth-oriented design

Navy #000080

Authority and stability — the suit-and-tie of colors

Q: What are CSS named colors?
What are CSS named colors? CSS defines 148 named colors like Coral and Goldenrod that work in any stylesheet without hex codes. They are great for prototyping but designers usually switch to hex or HSL for precise brand colors.
Q: How does color psychology affect design?
How does color psychology affect design? Warm colors (red, orange, yellow) create energy and urgency; cool colors (blue, green, teal) create calm and trust. CTAs often use warm tones while financial and health brands prefer blues and greens.