Tailwind CSS v1.0 is here! Learn more →

Letter Spacing

Utilities for controlling the tracking (letter spacing) of an element.

Class reference

Class Properties
.tracking-tight letter-spacing: -0.05em;
.tracking-normal letter-spacing: 0;
.tracking-wide letter-spacing: 0.05em;

Usage

Control the letter spacing of an element using the .tracking-{size} utilities.

.tracking-tight

The quick brown fox jumped over the lazy dog.

.tracking-normal

The quick brown fox jumped over the lazy dog.

.tracking-wide

The quick brown fox jumped over the lazy dog.

<p class="tracking-tight ...">The quick brown fox ...</p>
<p class="tracking-normal ...">The quick brown fox ...</p>
<p class="tracking-wide ...">The quick brown fox ...</p>

Responsive

To control the letter spacing of an element at a specific breakpoint, add a {screen}: prefix to any existing letter spacing utility. For example, use md:tracking-wide to apply the tracking-wide utility at only medium screen sizes and above.

For more information about Tailwind's responsive design features, check out the Responsive Design documentation.

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.

Customizing

Responsive and State Variants

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

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

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

{
// ...
modules: {
    // ...
-   tracking: ['responsive'],
+   tracking: ['responsive', 'hover', 'focus', 'active', 'group-hover'],
}
}

Disabling

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

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