Stop guessing font sizes and start building harmonious design systems with our free typography scale generator. This tool calculates a mathematical “modular scale” to ensure every heading and paragraph on your website relates perfectly to one another. Visually test your scale in real-time, ensure accessibility with our built-in contrast checker, and instantly export the code for CSS variables or a Tailwind config file.
Free Typography Scale Generator
Design Style
Typography
Style
Colors AAA
Follow Us On
What is a Modular Typography Scale?
A modular scale is a sequence of numbers that relate to one another in a meaningful way. Instead of picking arbitrary font sizes (like 18px, then 24px, then 35px), you choose a Base Size (usually 16px) and a Ratio (like 1.250).
The generator multiplies your base size by the ratio to get the next size up. This creates a “visual rhythm” that feels natural and professional to the human eye.
- Small Ratios (e.g., 1.125 Major Second): Best for dashboards and product interfaces where you need many font sizes that aren’t too different from each other.
- Large Ratios (e.g., 1.618 Golden Ratio): Best for marketing sites, portfolios, and editorial blogs where you want dramatic contrast between headings and body text.
Features of This Generator
We designed this tool to bridge the gap between design and development:
Real-World Previews: Don’t just look at a list of numbers. Switch to “Blog Post” view to see how your scale handles headings, paragraphs, and buttons in a realistic layout.
Tailwind Ready: One of the hardest parts of setting up Tailwind CSS is configuring the theme.extend. We generate the exact JavaScript code you need to copy-paste into your tailwind.config.js.
Accessibility Checker: Good design must be readable. Our tool automatically calculates the contrast ratio between your text and background colors, giving you a Pass/Fail grade (AAA or AA) instantly.
Device Testing: Use the Mobile/Desktop toggle to ensure your chosen ratio doesn’t result in headings that are too large for phone screens.
How to Use This Tool
- Choose a Preset (Optional): If you are unsure where to start, click “SaaS” for a functional look or “Editorial” for a high-contrast, classy vibe.
- Set Your Base: Standard web design uses 16px, but you can adjust this if your project requires larger or smaller text.
- Pick a Ratio: Use the dropdown to experiment. Notice how “Perfect Fourth” creates much larger
h1tags than “Major Second.”
- Customize Fonts: Select from popular Google Fonts like Inter, Poppins, or Playfair Display to match your brand.
- Export: Click the “Tailwind” tab if you are using a framework, or “CSS” for standard projects. Click “Copy” and you’re done!
FAQ- Free typography scale generator
For mobile apps or complex dashboards, we recommend a smaller ratio like 1.125 (Major Second) or 1.200 (Minor Third). Large ratios (like the Golden Ratio) often result in headers that are too big for small screens, breaking words and taking up too much vertical space.
The badge (e.g., “AAA” or “AA”) indicates if your text color is readable against your background color according to WCAG standards. You should aim for at least AA for normal text to ensure your site is accessible to users with visual impairments.
Yes. All the fonts listed in this generator (Inter, Roboto, Playfair Display, etc.) are open-source Google Fonts and are free to use in commercial projects.

