Type Scale Generator
Build a modular type scale from a base size and a ratio, including the golden ratio, preview it and copy the CSS variables.
Runs in your browser. Nothing leaves this device.
How to use Type Scale Generator
- 1Type a base size and pick a ratio.
- 2Choose how many steps up and down you want.
- 3Check the preview and copy the CSS variables.
Questions
What is a modular scale?
Each size is the one below it times the same ratio. With a 16px base and a 1.25 ratio you get 16, 20, 25, 31.25 and so on, which keeps headings in proportion.
Which ratio should I pick?
Small ratios like 1.125 or 1.2 suit dense apps with many levels. Larger ones like 1.333 or the golden ratio give bigger jumps for pages with a few large headings.
What does the golden split do?
It divides a length into two parts where the whole is to the larger part as the larger is to the smaller, about 61.8% and 38.2%. It is handy for column widths.
Is anything saved or sent?
No. Everything is worked out in your browser.
Is it free?
Yes. No account, no watermark and no daily limit.
Related tools
- DesignColour ConverterConvert a colour between HEX, RGB, HSL, HSV, HWB, OKLCH and CMYK, and check its contrast against white and black.
- DesignColour Picker from ImageClick anywhere on an image to get the exact colour as HEX, RGB and HSL, and see its main colours.
- DesignAspect Ratio CalculatorFind the aspect ratio of any width and height, resize to a new width or height at the same ratio, and see megapixels and common sizes.
- DesignBackground & Wallpaper GeneratorMake mesh gradients, grain textures and dot, grid, wave or stripe patterns at any size, then download a PNG or copy the CSS.
- DesignBorder Radius GeneratorRound each corner of a box in pixels or percent, see the shape change and copy the shortest CSS.
- DesignBox Shadow GeneratorSet the offset, blur, spread and colour of a CSS box shadow, watch it on a box and copy the CSS.