Line Height
Dashvar provides a few utility variables for most common line-height
s. We recommend pairing a line-height
with the same variable name of font-size
like follows:
.selector {
font-size: var(--font-size-3);
line-height: var(--line-height-3);
}
The quick brown fox jumped over the lazy dog.
The quick brown fox jumped over the lazy dog.
var(--line-height-1)
1.25rem
The quick brown fox jumped over the lazy dog.
var(--line-height-2)
1.5rem
The quick brown fox jumped over the lazy dog.
var(--line-height-3)
1.75rem
The quick brown fox jumped over the lazy dog.
var(--line-height-4)
1.75rem
The quick brown fox jumped over the lazy dog.
The quick brown fox jumped over the lazy dog.
var(--line-height-6)
2.25rem
The quick brown fox jumped over the lazy dog.
var(--line-height-7)
2.5rem
The quick brown fox jumped over the lazy dog.
The quick brown fox jumped over the lazy dog.
The quick brown fox jumped over the lazy dog.
The quick brown fox jumped over the lazy dog.
The quick brown fox jumped over the lazy dog.
Interactive Example
Feel free to play with this interactive example to get comfortable with the tool.