Type scale generator.
Pick a base size and a ratio and read the whole type scale as a live specimen, then copy it as CSS, Tailwind or fluid clamp() values.
Type scale generator.
Need the UI around it? With Pro, your AI agent builds the form, the result card and the rest of the page from a prompt.
Get ProHow it works
4 steps, no account. It runs in your browser and nothing is uploaded.
Set the base
Choose the body size and a ratio, from a minor second to the golden ratio, and how many steps go above and below.
Tune the rhythm
Set the body and heading line heights and the headings' tracking, and snap line heights to a 4px grid if you like.
Make it fluid
Turn on clamp() and give a smaller base and ratio for phones, then preview any width between the two viewports.
Copy the code
Copy CSS variables or a Tailwind v4 theme, in rem or px, with Tailwind's names or numbered steps.
Related tools
More design tools. Every one free, in the browser.
Pricing
Build it with Pro
The tool is free. Pro adds 6,000+ blocks, premium templates and the MCP server, so your AI editor builds the product around it.
4.9/5 out of 5 · 150+ reviewsfrom 150+ founders and developers.
- Secure checkout via Stripe
- Code lives in your repo
- Keep what you've shipped if you cancel
- License terms
Questions and answers
Before you trust the result: what to know about the format, the limits, your data and the tools next to it.
A set of font sizes where each step is the one below times the same ratio: at 16 px and 1.25, the steps run 16, 20, 25, 31.25 and on. A shared ratio makes headings and body text look related. Most sites need two steps below the base and five or six above.
Small ratios like 1.125 or 1.2 suit dense interfaces and dashboards, where headings stay close to the body. 1.25 or 1.333 suit most sites and docs. 1.5 and the golden ratio make dramatic, editorial headlines but grow fast, so they need fewer steps.
Big type set at a body line height looks loose, so the line height eases from the body's to the headings' as the steps grow. Large letters also look spaced out, so the tracking tightens the same way, while the base and smaller steps keep normal tracking.
Each size becomes a clamp() that grows in a straight line from the small scale at the narrow viewport to the main one at the wide viewport, and holds past both. Headings shrink on phones without a media query. In rem, the bounds still follow the reader's font size setting.
No. The scale is worked out and the specimen drawn in your browser; nothing is sent anywhere.
Copy the Tailwind tab into your CSS: each --text-* in @theme sets a font size with its own line height and letter spacing, so a class like text-2xl applies all three. With the xs to 5xl names it replaces Tailwind's default sizes; with step names it adds text-step-1 and the rest.
A rem follows the font size the reader set in their browser, so someone who needs larger text gets the whole scale larger. px sizes stay fixed whatever they set. The specimen lists px beside each step for reference.
No. The Type scale generator is free and opens without a sign-in, an account or an install.
Nothing. The Type scale generator holds your input in the page's memory, so closing or reloading the tab clears it, and it saves nothing in this browser.
Closest to the Type scale generator: Aspect ratio calculator, Color converter, Lorem ipsum generator, SVG pattern generator. Each opens on its own page, free and in the browser.
The Type scale generator is one of 11 in its group. The group's page, /tools/design, lists them all.
The tool is free. Its interface is built from shadcn.io's own components (Button, Input, Slider and the rest of the registry under /ui), which come in React, Vue, Svelte and Solid. Pro adds the blocks and templates for the product around it.
4.9 out of 5 from 150+ developers
Build the product around it
Every block, template and icon, installed by your AI agent in your theme. The tools stay free.
Get Pro


