TypographyLetter Spacing

Letter Spacing

Controls how the letters are spaced on an element.

Widely available

This feature is well established and works across many devices and browser versions.

Chrome
Edge
Firefox
Safari
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.

Sphinx of black quartz, judge my vow.

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

1

The letters will be slightly closer together than normal.

Sphinx of black quartz, judge my vow.

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

2

The letters will be slightly closer together.

Sphinx of black quartz, judge my vow.

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

3

The letters will be slightly more spaced apart.

Sphinx of black quartz, judge my vow.

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

4

The letters will be spaced further apart.

Sphinx of black quartz, judge my vow.

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

5

The letters will be significantly spaced apart.

Sphinx of black quartz, judge my vow.

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

Using utility variants

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

Targeting different viewports

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

Targeting hover states

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