Free & Open Source

Fluid Type ScaleCalculator

Generate responsive CSS typography with clamp(). Pick a scale ratio, set your viewport range, and copy production-ready custom properties in seconds.

📐

Scale Ratios

Choose from classic ratios like Minor Third (1.2), Major Third (1.25), Perfect Fourth (1.333), Golden Ratio (1.618), and more.

📋

Copy-Ready CSS

One-click copy of CSS custom properties with clamp() values — paste straight into your stylesheet.

👁️

Live Preview

See every step of your type scale rendered in real-time with actual computed sizes at any viewport width.

Base Font Size

Viewport Range

Scale Ratio

Live Preview at 800px

Drag to simulate viewport width
320px1280px

Type Scale

--fs-3xl
54.9px

3XL — The quick brown fox

--fs-2xl
43.9px

2XL — The quick brown fox

--fs-xl
35.2px

XL — The quick brown fox

--fs-lg
28.1px

Large — The quick brown fox

--fs-md
22.5px

Medium — The quick brown fox

--fs-base
18px

Base — The quick brown fox

--fs-sm
14.4px

Small — The quick brown fox

Generated CSS

:root {
  --fs-sm: clamp(0.8rem, 0.7333rem + 0.3333vw, 1rem);
  --fs-base: clamp(1rem, 0.9167rem + 0.4167vw, 1.25rem);
  --fs-md: clamp(1.25rem, 1.1458rem + 0.5208vw, 1.5625rem);
  --fs-lg: clamp(1.5625rem, 1.4323rem + 0.651vw, 1.9531rem);
  --fs-xl: clamp(1.9531rem, 1.7904rem + 0.8135vw, 2.4413rem);
  --fs-2xl: clamp(2.4413rem, 2.2377rem + 1.0177vw, 3.0519rem);
  --fs-3xl: clamp(3.0519rem, 2.7975rem + 1.2719vw, 3.815rem);
}

Size Reference

StepMin (px)Max (px)Min (rem)Max (rem)
--fs-sm12.8160.81
--fs-base162011.25
--fs-md20251.251.5625
--fs-lg2531.251.56251.9531
--fs-xl31.2539.061.95312.4413
--fs-2xl39.0648.832.44133.0519
--fs-3xl48.8361.043.05193.815

Frequently Asked Questions

Everything you need to know about Fluid Type Scale.