InputTestHub

Typographic Scale Generator

Generates a modular type scale from a base size and ratio, with CSS variables and clamp() values.

Colour & Design Nothing uploaded No sign-up Free, unlimited
Colour & Design tool
Fill in the fields and press Generate.
In short A modular scale multiplies a base size by a fixed ratio to generate every other size: at 16px with a ratio of 1.25, the steps are 20, 25, 31.25, 39 and so on upward, and 12.8, 10.24 downward. The point is not mathematical purity — it is that a page with five arbitrary font sizes looks accidental while a page built on one ratio looks intentional, and picking sizes from a fixed set removes the decision entirely. The ratio is a stylistic choice with a practical consequence. Small ratios like 1.125 or 1.2 give many closely related sizes, which suits dense interfaces and documentation. Large ratios like 1.5 or 1.618 give dramatic contrast and few usable steps, which suits marketing pages and falls apart in a settings screen. 1.25 is the common default because it survives both. Two things to check before shipping the output. Round the values — 31.25px is not more precise than 31px, it is just harder to read in a stylesheet. And use `clamp()` for the large sizes, because a scale that works on a desktop heading will overflow a phone: `clamp(2rem, 5vw, 3.5rem)` lets the top of the scale shrink while the body text stays put.

How to use the Typographic Scale Generator

  1. Fill in the fields with your own details.
  2. The generated code updates live in the output panel.
  3. Copy the code and paste it into your page, file or CMS.

About the Typographic Scale Generator

The Typographic Scale Generator generates a modular type scale from a base size and ratio, with CSS variables and clamp() values. It runs as plain JavaScript inside the page, which means there is no upload step, no queue and no size limit imposed by a server — the only limit is your own device.

What people use it for

  • Building a consistent heading scale.
  • Producing fluid type with clamp().
  • Setting up design tokens for a new project.

Frequently asked questions

Is the Typographic Scale Generator free?
Free, unlimited, and no email address required. You can use it a hundred times a day and nothing changes.
Is my data uploaded anywhere?
No. The Typographic Scale Generator runs entirely in your browser using JavaScript. Your input never reaches inputtesthub.com or any third party — open your browser's Network tab while you use it and you will see no request go out.
What do people use the Typographic Scale Generator for most?
The jobs it is built for: building a consistent heading scale. Producing fluid type with clamp(). Setting up design tokens for a new project. It is built for exactly those cases rather than being a general-purpose tool with this bolted on.
Will this work on a tablet?
Yes. The page is responsive and the page works in Chrome, Safari, Firefox, Edge and Samsung Internet on both Android and iOS. There is no app to install and nothing to sign into.

Related colour & design tools

All 33
01

CSS Gradient Generator

Builds linear, radial and conic CSS gradients with multiple stops, live preview and copyable…

02

Box Shadow Generator

Builds CSS box shadows with multiple layers, live preview and copyable output including inset…

03

Text Shadow Generator

Creates CSS text shadows including outline, emboss, neon and long-shadow effects.

04

Border Radius Generator

Builds CSS border-radius including per-corner and elliptical values, with a live preview.

06

Neumorphism CSS Generator

Generates soft-UI shadows where an element appears extruded from or pressed into the background.

07

Cubic Bezier Generator

Builds CSS easing curves with a draggable preview and a library of standard easings.

08

CSS Filter Generator

Builds CSS filter chains — blur, brightness, contrast, grayscale, hue-rotate, invert…

09

CSS Transform Generator

Builds CSS transforms — translate, rotate, scale, skew and 3D perspective — with a live preview.

10

Flexbox Generator

Builds flexbox layouts visually and outputs the CSS, with every alignment and wrapping option…