PufferKit
HomeDesignType Scale
Default
India11
East Asia3
Other Countries3
Buy me a coffee

Type Scale

Modular typographic scale with ratio presets, fluid clamp() mode, line-height tokens, and live preview.

Scale
Preview
--text-5xl61.04px · 3.815rem · lh 1.15

The quick brown fox jumps over the lazy dog

--text-4xl48.83px · 3.052rem · lh 1.27

The quick brown fox jumps over the lazy dog

--text-3xl39.06px · 2.441rem · lh 1.37

The quick brown fox jumps over the lazy dog

--text-2xl31.25px · 1.953rem · lh 1.45

The quick brown fox jumps over the lazy dog

--text-xl25px · 1.563rem · lh 1.51

The quick brown fox jumps over the lazy dog

--text-lg20px · 1.25rem · lh 1.56

The quick brown fox jumps over the lazy dog

--text-base16px · 1rem · lh 1.6

The quick brown fox jumps over the lazy dog

--text-sm12.8px · 0.8rem · lh 1.63

The quick brown fox jumps over the lazy dog

--text-xs10.24px · 0.64rem · lh 1.66

The quick brown fox jumps over the lazy dog

CSS
:root {
  --text-xs: 0.64rem;
  --text-sm: 0.8rem;
  --text-base: 1rem;
  --text-lg: 1.25rem;
  --text-xl: 1.563rem;
  --text-2xl: 1.953rem;
  --text-3xl: 2.441rem;
  --text-4xl: 3.052rem;
  --text-5xl: 3.815rem;

  --leading-xs: 1.66;
  --leading-sm: 1.63;
  --leading-base: 1.6;
  --leading-lg: 1.56;
  --leading-xl: 1.51;
  --leading-2xl: 1.45;
  --leading-3xl: 1.37;
  --leading-4xl: 1.27;
  --leading-5xl: 1.15;
}
Base 16px × 1.25 · 9 steps
Runs in this browser · nothing uploaded

Runs in this browser. Nothing is uploaded.

How to use Type Scale

  1. Choose a Base size in pixels, select a musical or golden Ratio, and pick how many steps to generate above base.

  2. Enable Fluid sizes (clamp) if you want steps above base to interpolate smoothly from 360px to 1280px viewports.

  3. Preview with system stacks or a locally installed font name and copy the :root --text-* and --leading-* variables.

Frequently asked questions

How are rem values computed?

Every step divides its computed pixel size by 16px root and pairs with a decreasing --leading-* line-height token floored at 1.05.

A LITTLE SUPPORT GOES A LONG WAY

Enjoying PufferKit?

If these tools made your day a little easier, you can buy me a coffee and support what I’m building.

Support
With or without a coffee, you’re always welcome here.

Processing locally

File and data operations run locally inside this browser tab. Static assets such as fonts and qpdf.wasm load from this site origin, while PufferKit never uploads your files or tracks usage. HTTP client tools send requests to endpoints you choose. Preferences and saved drafts stay in this browser’s storage until you clear them.

How it works →

Find a tool

Compress Image to KBImagesImage ConverterImagesImage ResizerImagesImage CropperImagesImage RotatorImagesImage DimensionsImagesImage ViewerImagesImage FlipperImagesImage MetadataImages · SecurityRemove MetadataImages · SecurityImage OptimizerImagesImage to Base64Images · DeveloperSVG to PNGImages · DesignJPG to PNGImagesPNG to JPGImagesJPG to WebPImagesPNG to WebPImagesWebP to JPGImagesWebP to PNGImagesAVIF to JPGImagesAVIF to PNGImagesBMP to PNGImagesImage FiltersImagesImage EffectsImagesPixelate ImageImagesBlur ImageImagesSharpen ImageImagesAdjust BrightnessImagesAdjust ContrastImagesAdjust SaturationImages