Performance: Line height and leading
LOW IMPACT
Line height affects text readability and vertical spacing, impacting paint and layout performance when changed frequently.
<p class="leading-relaxed">Text with standard Tailwind leading</p><p class="leading-[2.5rem]">Text with custom large line height</p>| Pattern | DOM Operations | Reflows | Paint Cost | Verdict |
|---|---|---|---|---|
| Arbitrary inline line-height | Minimal | 1 per text block | Moderate | [X] Bad |
| Tailwind predefined leading classes | Minimal | 1 on initial load | Low | [OK] Good |