Skip to content

Letter Spacing

Controls how the letters are spaced on an element.

Utility Properties

ls-0

letter-spacing: 0em;

ls-1

letter-spacing: -0.05em;

ls-2

letter-spacing: -0.025em;

ls-3

letter-spacing: 0.025em;

ls-4

letter-spacing: 0.05em;

ls-5

letter-spacing: 0.1em;

0

This example sets the letter spacing to 0em. The letters will be spaced normally, with no additional spacing applied.

Sphinx of black quartz, judge my vow.

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

1

This example sets the letter spacing to -0.05em. The letters will be slightly closer together than normal, creating a tighter appearance.

Sphinx of black quartz, judge my vow.

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

2

This example sets the letter spacing to -0.025em. The letters will be slightly closer together, providing a subtle tightening effect.

Sphinx of black quartz, judge my vow.

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

3

This example sets the letter spacing to 0.025em. The letters will be slightly more spaced apart, enhancing readability.

Sphinx of black quartz, judge my vow.

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

4

This example sets the letter spacing to 0.05em. The letters will be spaced further apart, creating a more open appearance.

Sphinx of black quartz, judge my vow.

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

5

This example sets the letter spacing to 0.1em. The letters will be significantly spaced apart, which can be useful for stylistic purposes.

Sphinx of black quartz, judge my vow.

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

Conditional styles

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

Media modifiers

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

<div class="ls-1 md:ls-2 ..."></div>
Hover modifiers

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

<div class="ls-1 h:ls-2 ..."></div>