Create beautiful letter spacing effects with Tailwind CSS
This generator creates tracking-* utility classes that control the space between characters in text. Tailwind's letter spacing uses em units by default, making it scale proportionally with font size. You can combine these with other typography tools, such as a font generator for complete typography control.
<!-- Example output -->
<h1 class="tracking-wider text-lg hover:tracking-widest">
Enhanced Headline
</h1>
Use responsive prefixes to adjust letter spacing across breakpoints. Pair this with our grid generator to create perfectly balanced layouts.
tracking-tight sm:tracking-normal md:tracking-wide
Mobile-first approach: base class applies to all screens
Combine with Tailwind's state modifiers for interactive effects:
tracking-normal hover:tracking-wide focus:tracking-wider
Add transition-all duration-300 for smooth animations
For custom tracking values, use the arbitrary value syntax or extend your Tailwind config:
// tailwind.config.js
module.exports = {
theme: {
extend: {
letterSpacing: {
'super-wide': '0.15em',
'mega-wide': '0.25em'
}
}
}
}
Arbitrary values (like tracking-[0.25em]) work in Tailwind CSS v3.0+ with JIT mode enabled.
Copy the class string and apply it to any HTML element. Combine with other Tailwind typography classes like font-size, font-weight, and leading-* (line height). Our line height generator can help you perfect the vertical rhythm.
Yes, use arbitrary values: tracking-[2px]. Note that pixel values don't scale with font size changes.
Indirectly. Wider tracking can make lines appear longer, potentially requiring leading-tight adjustments for multi-line text.
Tailwind's letter spacing utilities compile to standard CSS letter-spacing property, supported in all modern browsers including IE10+.
Last reviewed for Tailwind CSS v3.3 compatibility. Tailwind's core letter spacing scale hasn't changed since v1.0.