TypographyLetter Spacing

Letter Spacing

Controls how the letters are spaced on an element.

ClassStyle
ls-0letter-spacing: 0em;
ls-1letter-spacing: -0.05em;
ls-2letter-spacing: -0.025em;
ls-3letter-spacing: 0.025em;
ls-4letter-spacing: 0.05em;
ls-5letter-spacing: 0.1em;

0

The letters will be spaced normally.

<div class="bg-indigo-1 p-4 rad-1">
<p class="bg-white fs-lg ls-0 p-4 rad-1 ta-c tc-slate">Sphinx of black quartz, judge my vow.</p>
</div>

1

The letters will be slightly closer together than normal.

<div class="bg-indigo-1 p-4 rad-1">
<p class="bg-white fs-lg ls-1 p-4 rad-1 ta-c tc-slate">Sphinx of black quartz, judge my vow.</p>
</div>

2

The letters will be slightly closer together.

<div class="bg-indigo-1 p-4 rad-1">
<p class="bg-white fs-lg ls-2 p-4 rad-1 ta-c tc-slate">Sphinx of black quartz, judge my vow.</p>
</div>

3

The letters will be slightly more spaced apart.

<div class="bg-indigo-1 p-4 rad-1">
<p class="bg-white fs-lg ls-3 p-4 rad-1 ta-c tc-slate">Sphinx of black quartz, judge my vow.</p>
</div>

4

The letters will be spaced further apart.

<div class="bg-indigo-1 p-4 rad-1">
<p class="bg-white fs-lg ls-4 p-4 rad-1 ta-c tc-slate">Sphinx of black quartz, judge my vow.</p>
</div>

5

The letters will be significantly spaced apart.

<div class="bg-indigo-1 p-4 rad-1">
<p class="bg-white fs-lg ls-5 p-4 rad-1 ta-c tc-slate">Sphinx of black quartz, judge my vow.</p>
</div>

Using utility variants

Learn how to override existing utilities based on the user's screen size or other factors, such as hover states.

Using media queries

You can combine responsive breakpoints like sm:ls-*, md:ls-*, lg:ls-*, and xxl:ls-* to allow targeting specific utilities in different viewports.

Using hover states

Alternatively, you can apply :hover by using h:ls-* utility to override elements and change their values when hovering over them.