Everyday tools ↗

Digital & media maths / FREE BROWSER TOOL

Fluid CSS type scale.

Generate a CSS clamp interpolation between viewport and pixel font-size endpoints.

YOUR EVERYDAY DESKKeep your
next task close.
Switch between tools ↗
Fluid CSS type scale
See result ↓● Live result
01 / YOUR INPUTS

Processed on this device.

02 / YOUR RESULT

Your answer

ON YOUR DEVICE

Your result will appear here.

Adjust a field to calculate.

LOCAL INPUTS / CLEAR WORKING / USEFUL OUTPUTNothing to sign in to.

Built and maintained by Operance Labs · Report a calculation or documentation issue

A LITTLE KNOW-HOW

How to use
this tool.

  1. Enter the values for your task.
  2. Adjust the settings and inspect the live result and working.
  3. Copy the result or save a local report.

What the inputs mean

Minimum viewport (px)
Enter minimum viewport (px). Minimum: 1.
Maximum viewport (px)
Enter maximum viewport (px). Minimum: 1.
Minimum font size (px)
Enter minimum font size (px). Minimum: 0.01.
Maximum font size (px)
Enter maximum font size (px). Minimum: 0.01.
Root font size for rem (px)
Enter root font size for rem (px). Minimum: 0.01.
A WORKED STARTING POINT

See the working.

Inputs used in this example

These are example values, not a current price, tariff or personal recommendation. Reset example restores them in the workspace.

InputExample value
Minimum viewport (px)320
Maximum viewport (px)1440
Minimum font size (px)16
Maximum font size (px)32
Root font size for rem (px)16

CSS fluid size

clamp(1rem, 0.714286rem + 1.428571vw, 2rem)

font = minimum font + (maxFont−minFont) × (viewport−minViewport)/(maxViewport−minViewport)

  • rem values assume a 16px root size. Test user font overrides and zoom before applying. The viewport term only interpolates between the selected bounds.

Your inputs stay here

Your input is processed on this device. PixelDesk does not upload it to a calculation or file-processing server. Copying and downloading are deliberate actions. Closing the page clears the in-memory inputs; the app remembers only its theme and public reference-rate cache.

Methods and public data ↗

Keep a useful
thing close.

All digital & media maths ↗

Questions, answered.

What can I do with fluid css type scale?

Generate a CSS clamp interpolation between viewport and pixel font-size endpoints.

What does the fluid css type scale example show?

With Minimum viewport (px): 320; Maximum viewport (px): 1440; Minimum font size (px): 16, the example returns clamp(1rem, 0.714286rem + 1.428571vw, 2rem). The workspace shows the substituted formula and its assumptions; Reset example restores these inputs.

What should I check before using the result?

rem values assume a 16px root size. Test user font overrides and zoom before applying. The viewport term only interpolates between the selected bounds.