Line Height

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

Work in progress!

More detailed documentation is coming soon, but in the meantime here's a quick class reference.

Class reference

Class Properties
.leading-none line-height: 1;
.leading-tight line-height: 1.25;
.leading-normal line-height: 1.5;
.leading-loose line-height: 2;

Customizing

Responsive and State Variants

By default, only responsive variants are generated for leading utilities.

You can control which variants are generated for the leading utilities by modifying the leading property in the modules section of your Tailwind config file.

For example, this config will also generate hover and focus variants:

{
// ...
modules: {
    // ...
-   leading: ['responsive'],
+   leading: ['responsive', 'hover', 'focus'],
}
}

Disabling

If you don't plan to use the leading utilities in your project, you can disable them entirely by setting the leading property to false in the modules section of your config file:

{
// ...
modules: {
    // ...
-   leading: ['responsive'],
+   leading: false,
}
}