Skip to content
0

Line Height & Letter Spacing ​

Control the vertical spacing between lines of text and the horizontal spacing between characters.

Line Height ​

ClassProperties
.leading-noneline-height: 1
.leading-tightline-height: 1.25
.leading-snugline-height: 1.375
.leading-normalline-height: 1.5
.leading-relaxedline-height: 1.625
.leading-looseline-height: 2

Basic Usage ​

html
<p class="leading-tight">Tight line height for headings.</p>
<p class="leading-normal">Normal line height for body text.</p>
<p class="leading-loose">Loose line height for readability.</p>

Letter Spacing ​

ClassProperties
.tracking-tighterletter-spacing: -0.05em
.tracking-tightletter-spacing: -0.025em
.tracking-normalletter-spacing: 0em
.tracking-wideletter-spacing: 0.025em
.tracking-widerletter-spacing: 0.05em
.tracking-widestletter-spacing: 0.1em

Basic Usage ​

html
<h1 class="tracking-tight">Tightly spaced heading</h1>
<p class="tracking-wide">Wide letter spacing for emphasis.</p>
<span class="tracking-widest uppercase">S P A C E D</span>

SCSS Source ​

scss
// From _utilities.scss
$line-height-map: (
  "none": 1, "tight": 1.25, "snug": 1.375,
  "normal": 1.5, "relaxed": 1.625, "loose": 2
) !default;

$letter-spacing-map: (
  "tighter": -0.05em, "tight": -0.025em, "normal": 0em,
  "wide": 0.025em, "wider": 0.05em, "widest": 0.1em
) !default;

Released under the MIT License.