Skip to content

Letter Spacing

Controls how the letters are spaced on an element.

Utility Properties
Failed to load data. Please try again later.

0

This example sets the letter spacing to 0em. The letters will be spaced normally.

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.

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.

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.

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.

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.

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 modifier

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

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

Hover modifier

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

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