FiFont
← All tools

Type & CSS calculators

Modular type scale

Generate six CSS custom properties from a base font size and ratio.

Input

Runs entirely in your browser. Input is not uploaded.

Output

Live result
--type-0: 16px;
--type-1: 20px;
--type-2: 25px;
--type-3: 31.25px;
--type-4: 39.06px;
--type-5: 48.83px;

How to use

Enter your text or numeric values. The result updates immediately. Copy the output or reset the example. Everything is computed locally in your browser.

Related tools