Browse documentation

Reference / Typography

Line height

Control the distance between baselines. Tight leading brings a multiline heading together while relaxed leading opens up a paragraph.

Working example

A unitless line height scales with the font size. Numeric spacing tokens such as leading-6 set a fixed length.

HTML
<article class="max-w-xs">
  <h3 class="text-2xl leading-tight">The spaces between buildings</h3>
  <p class="mt-2 leading-relaxed">A walking route through narrow passages and open courtyards.</p>
</article>

Class reference

ClassCSS declarations
leading-noneline-height: 1;
leading-tightline-height: 1.25;
leading-normalline-height: 1.5;
leading-relaxedline-height: 1.625;
leading-6line-height: 1.5rem;
leading-[1.45]line-height: 1.45;
View full generated CSS
Compiled CSS
.leading-6 {
  line-height: 1.5rem;
}
.leading-\[1\.45\] {
  line-height: 1.45;
}
.leading-none {
  line-height: 1;
}
.leading-normal {
  line-height: 1.5;
}
.leading-relaxed {
  line-height: 1.625;
}
.leading-tight {
  line-height: 1.25;
}