Typography Scale Generator

Generate a harmonious type scale using musical ratios for consistent hierarchy.

Responsive Type Scale Generator

Build modular typography scales in px, rem, or bounded CSS clamp() variables.

xs
The quick brown fox
9px
sm
The quick brown fox
12px
base
The quick brown fox
16px
lg
The quick brown fox
21.33px
xl
The quick brown fox
28.43px
2xl
The quick brown fox
37.9px
3xl
The quick brown fox
50.52px
4xl
The quick brown fox
67.34px
CSS Variables Output
--text-xs: 9px;
--text-sm: 12px;
--text-base: 16px;
--text-lg: 21.33px;
--text-xl: 28.43px;
--text-2xl: 37.9px;
--text-3xl: 50.52px;
--text-4xl: 67.34px;

Features

  • Classic modular scale ratios
  • Named steps with px and rem values
  • Optional bounded clamp() CSS variables
  • Live specimen preview and copyable output

Bounded fluid sizes help typography adapt while preserving minimum and maximum limits for readability and zoom.

Type scale FAQ

What is a modular type scale?

Each step is calculated by multiplying a base size by a consistent ratio, creating predictable hierarchy.

Why use clamp()?

clamp() lets a value grow with the viewport while keeping minimum and maximum bounds.

Infinio Tools
© 2026 Infinio Labs