Overview - Line height and leading
What is it?
Line height is the vertical space between lines of text. Leading is an older term from print design that means the same thing. In Tailwind CSS, you control line height using the 'leading' utility classes. This spacing helps make text easier to read and look balanced on a page.
Why it matters
Without proper line height, text can look cramped or too spread out, making it hard to read. Good line height improves readability and comfort, especially on screens where people read a lot. Tailwind's utilities make it easy to adjust this spacing consistently across a website, saving time and avoiding messy custom CSS.
Where it fits
Before learning line height, you should understand basic CSS typography like font size and font family. After mastering line height, you can explore advanced typography concepts like letter spacing, font weight, and responsive text design.