Docs / Line Height

Line Height

vel-src: typography.css

Utilities for controlling the leading (line height) of an element.

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

Examples

Line height

vel-leading-tight

VeloraCSS is a utility-first CSS framework with tight line spacing. Lines are close together.

vel-leading-relaxed

VeloraCSS is a utility-first CSS framework with relaxed line spacing. Lines breathe more.

example.html
<div class="vel-grid vel-grid-cols-2 vel-gap-6">
  <div>
    <p style="color:#64748b;font-size:11px;margin-bottom:6px">vel-leading-tight</p>
    <p class="vel-leading-tight vel-text-sm" style="color:#94a3b8">VeloraCSS is a utility-first CSS framework with tight line spacing. Lines are close together.</p>
  </div>
  <div>
    <p style="color:#64748b;font-size:11px;margin-bottom:6px">vel-leading-relaxed</p>
    <p class="vel-leading-relaxed vel-text-sm" style="color:#94a3b8">VeloraCSS is a utility-first CSS framework with relaxed line spacing. Lines breathe more.</p>
  </div>
</div>