UT

Vertical Rhythm Calculator

Calculate vertical rhythm for consistent text spacing.

Baseline Unit: 24px
ElementFont SizeLinesLine HeightMargin Bottomrem Values
h140.0px21.200024px2.500rem / 1.500rem
h232.0px21.500024px2.000rem / 1.500rem
h328.0px21.714324px1.750rem / 1.500rem
h424.0px11.000024px1.500rem / 1.500rem
h520.0px11.200024px1.250rem / 1.500rem
h616.0px11.500024px1.000rem / 1.500rem
p16.0px11.500024px1.000rem / 1.500rem
small14.0px11.714324px0.875rem / 1.500rem

h140px on the baseline grid

h232px on the baseline grid

h328px on the baseline grid

h424px on the baseline grid

h520px on the baseline grid

CSS Custom Properties:

:root {
  --baseline: 24px;
  --font-size-base: 16px;
  --line-height-base: 1.5;
  --font-size-h1: 2.500rem;
  --line-height-h1: 1.2000;
  --font-size-h2: 2.000rem;
  --line-height-h2: 1.5000;
  --font-size-h3: 1.750rem;
  --line-height-h3: 1.7143;
  --font-size-h4: 1.500rem;
  --line-height-h4: 1.0000;
  --font-size-h5: 1.250rem;
  --line-height-h5: 1.2000;
  --font-size-h6: 1.000rem;
  --line-height-h6: 1.5000;
  --font-size-p: 1.000rem;
  --line-height-p: 1.5000;
  --font-size-small: 0.875rem;
  --line-height-small: 1.7143;
}