Type Scale Generator

Create harmonious typography systems with mathematical precision

h1
48px
The quick brown fox jumps over the lazy dog
h2
40px
The quick brown fox jumps over the lazy dog
h3
33px
The quick brown fox jumps over the lazy dog
h4
28px
The quick brown fox jumps over the lazy dog
h5
23px
The quick brown fox jumps over the lazy dog
h6
19px
The quick brown fox jumps over the lazy dog
p
16px
The quick brown fox jumps over the lazy dog

Export Code

/* Type Scale - Minor Third (1.2) */
:root {
  --font-family: 'Inter', sans-serif;
  --font-weight: 500;
  --line-height: 1.6;
  --letter-spacing: 0em;
  
  /* Font Sizes */
  --font-size-h1: 2.986rem; /* 48px */
  --font-size-h2: 2.488rem; /* 40px */
  --font-size-h3: 2.074rem; /* 33px */
  --font-size-h4: 1.728rem; /* 28px */
  --font-size-h5: 1.44rem; /* 23px */
  --font-size-h6: 1.2rem; /* 19px */
  --font-size-p: 1rem; /* 16px */
}

/* Usage Example */
h1 { font-size: var(--font-size-h1); }
h2 { font-size: var(--font-size-h2); }
h3 { font-size: var(--font-size-h3); }
h4 { font-size: var(--font-size-h4); }
h5 { font-size: var(--font-size-h5); }
h6 { font-size: var(--font-size-h6); }
p { font-size: var(--font-size-p); }

Love quick tools like this?

Get a complete Next.js 15 boilerplate and skip weeks of setup—auth, payments, email, and more built-in. Start shipping features, not infrastructure.

View Next.js Boilerplate →
Introduction

What is a Type Scale Generator?

A type scale generator helps you create a sequence of font sizes that work together with mathematical precision.

Instead of guessing which font size works for your h1, h5, h6, or caption text, the tool calculates a harmonious set of sizes based on a consistent ratio. This approach ensures consistency across your entire design system while maintaining visual hierarchy and rhythm.

Why Typographic Scales Matter

Understanding type scales transforms how text appears on different devices and screen sizes.

A well-structured typography system improves readability, creates clear visual hierarchy, and ensures accessibility. When your font sizes follow a predictable pattern users experience better harmony and proportion across every page. This consistency becomes an attribute of your brand identity, making your content visually appealing and professional.

Who Should Use a Type Scale Generator?

  • Designers building cohesive design systems
  • Developers implementing responsive type with CSS
  • Content strategists ensuring readability across layouts
  • Product teams maintaining consistency between app screens
  • Brand designers establishing typographic standards

How a Type Scale Generator Works

Basic Principles and Ratios

Basic Principles

The generator starts with your base font size (16px for web typography) and applies a scale ratio to calculate larger and smaller font sizes. Each step up or down follows this ratio mathematically, creating proportion between sizes. You select how many levels you need (heading, subheading, body text, caption, etc.), choose your preferred units (px, rem, em), and the tool generates the complete scale. Some generators include letter spacing adjustments and line-height recommendations to enhance readability.

Common Scale Ratios

  • Minor Third (1.2): Subtle spacing, perfect for text-heavy layouts.
  • Major Third (1.25): Slightly more distinct, used by Material Design for balanced hierarchy.
  • Perfect Fifth (1.5): Creates noticeable contrast, ideal for dramatic headlines.
  • Golden Ratio (1.618): Tim Brown's classic scale based on natural proportion, delivers elegant visual appeal.

Think of these like a musical scale—each ratio creates different "notes" in your typography, and the right choice depends on your specific design needs.

Responsive Scaling Techniques

Modern responsive type adapts smoothly across viewport sizes. Use CSS clamp() to set minimum and maximum font sizes with fluid scaling between breakpoints:

font-size: clamp(1rem, 2.5vw, 2rem);

This creates flexible typography that responds to browser width without hard breakpoint jumps, ensuring your type scale works on desktop and mobile devices seamlessly.

Key Features in Our Type Scale Generator

A step-by-step look at the tool's capabilities

Choose Base Size and Ratio

Start with 16px and select a ratio that matches your brand voice—subtle for professional content, dramatic for creative projects.

Select Units and Rounding

Pick rem for accessibility (scales with user preferences) or px for precise control. Enable rounding to keep sizes clean.

Preview Across Devices

See your typography system at different screen sizes before exporting.

Export Options

Generate CSS variables, Sass maps, or JSON for design tokens. Copy code snippets directly into your project.

Integration Examples

CSS Variables

:root {
  --font-size-base: 1rem;
  --font-size-h6: 1.2rem;
  --font-size-h5: 1.44rem;
  --font-size-h1: 2.488rem;
  --spacing-base: 1.5em;
}

h1 { font-size: var(--font-size-h1); }
body { font-size: var(--font-size-base); }

Sass Map

$type-scale: (
  'caption': 0.833rem,
  'body': 1rem,
  'h6': 1.2rem,
  'h1': 2.488rem
);

@each $name, $size in $type-scale {
  .text-#{$name} { font-size: $size; }
}

Accessibility Considerations

Your type scale should ensure legible minimum sizes—body text never below 16px for comfortable reading. Test contrast ratios and consider line length (45-75 characters optimal for paragraphs). A good generator helps designers and developers create sizes while maintaining accessibility standards across all font categories based on usage context.

Best Practices for Using a Type Scale Generator

Choosing the Right Base Font Size

Start with 16px for web projects. This matches browser defaults and ensures readability. Adjust based on your font-family characteristics; some typefaces look smaller or larger at identical sizes. Preview your actual content to verify the base size works for body text.

Selecting a Ratio

  • Subtle projects (documentation, long-form articles): Use 1.2 minor third
  • Balanced interfaces (most websites, apps): Try 1.25 major third
  • Expressive designs (marketing, portfolios): Consider 1.5 or 1.618 golden ratio

Changing the scale ratio dramatically affects hierarchy. Tools like our scale calculator let you compare ratios side-by-side with a preview before committing.

Consistency and Tokenization

Map your type scale to semantic design tokens: display, headline, body, caption. This terminology helps teams implement sizes consistently. Instead of "font-size-4," use "heading-large" as it communicates purpose, not just calculation.

Testing and Iteration

Test with real content across different devices. Headlines that work on desktop might need smaller font sizes on mobile. Enable customization for edge cases while keeping most sizes consistent. Check zoom behavior in the browser—your responsive type should remain readable at 200% zoom.

Pros and Cons of Using a Type Scale Generator

Pros

A type scale generator saves hours calculating proportional sizes manually.

It reduces design drift where different pages use inconsistent font sizes.

The tool makes responsive typography easier by providing a foundation for fluid scaling.

You get clean, exportable code that simplifies handoff between designers and developers. The mathematical approach ensures visual harmony across your entire design system.

Cons

Misconfigured settings can produce impractical sizes—a 72px h1 might work on desktop but overwhelm mobile layouts.

Over-reliance on generated scales can stifle custom typographic tuning where certain headlines need specific consideration.

You still need accessibility checks beyond what automated tools provide, especially for letter spacing and line-height with different font families.

Step-by-Step Guide: Creating Your Type Scale

Step 1 — Define Goals

Identify your brand voice (professional, playful, elegant), primary content types (long articles, short product descriptions), and accessibility targets (minimum sizes, contrast requirements).

Step 2 — Choose Base Size and Ratio

Input 16px as your starting point. Select a ratio—try 1.25 for balanced hierarchy. Use our typography tool to preview how this combination looks with your actual font-family.

Step 3 — Generate Scale and Refine

Review the calculated sizes. Adjust rounding if needed (1.777rem vs 1.78rem). Fine-tune letter spacing for larger headline sizes—tracking often needs reduction as font size increases. Set line-height proportionally (1.5 for body, 1.2 for headlines).

Step 4 — Export and Implement

Export CSS custom properties or design tokens. Add variables to your stylesheet and map them to HTML elements. Create utility classes for your typography system. Document the scale in your design system for team consistency.

Real-World Examples

Example 1: Content-Driven Blog

  • Problem: Long articles need comfortable reading with clear hierarchy between h1, h5, and paragraph text
  • Solution: Minor third (1.2) ratio with 18px base for slightly larger body text
  • Implementation: CSS variables with fluid scaling using clamp for responsive behavior
  • Result: Readers spend more time on page; reduced font-size complaints

Example 2: Product UI/Dashboard

  • Problem: Compact interface needs distinct sizes in limited space
  • Solution: Major third (1.25) ratio with careful spacing and letter spacing optimization
  • Implementation: Sass map integrated with component library
  • Result: Clear visual hierarchy without overwhelming small screens; improved app navigation

Use Our Type Scale Generator

Ready to create a harmonious typography system? Our generator is a tool to help you build proportional type scales in minutes. Choose your base font size, select a ratio, preview the results, and export production-ready CSS. Whether you're building a design system or need consistent sizes for a single project, our typography tool ensures your font sizes maintain visual appeal and readability. Try our type scale generator now and enhance your web typography.

Frequently Asked Questions

Everything you need to know about Type Scale Generators

What is the best base font size to start with?+

We recommend 16px for web projects since it matches browser defaults and provides comfortable readability for most typefaces. Tailor this based on your font-family; condensed fonts might need 17-18px while wide fonts work at 15-16px.

Which ratio should I choose for my project?+

Use minor third (1.2) for subtle, text-heavy layouts. Major third (1.25) works well for balanced designs and is used in Material Design. Perfect fifth (1.5) or golden ratio (1.618) create a dramatic hierarchy for marketing sites. Preview several ratios with your content to decide.

Can I make type scale responsive?+

Yes. Use CSS clamp()for smooth scaling between minimum and maximum sizes across viewport widths. Alternatively, define different scales at specific breakpoints using media queries. Modern approaches combine both base scales with fluid adjustments.

How do I convert px to rem for a type scale?+

Divide pixel size by root font size (typically 16px). Example: 24px ÷ 16 = 1.5rem. Using rem enables users to scale text via browser settings, improving accessibility.

Is a type scale generator necessary?+

Not required, but highly recommended. Manual calculation works but risks inconsistency and takes longer. A scale calculator helps you create harmonious sequences faster while ensuring mathematical proportion. The consistency attribute alone improves user experience significantly across different devices and screen sizes.