Letter Spacing
Controls how the letters are spaced on an element.
| Class | Style |
|---|---|
| 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
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-slate">Sphinx of black quartz, judge my vow.</p></div>1
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-slate">Sphinx of black quartz, judge my vow.</p></div>2
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-slate">Sphinx of black quartz, judge my vow.</p></div>3
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-slate">Sphinx of black quartz, judge my vow.</p></div>4
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-slate">Sphinx of black quartz, judge my vow.</p></div>5
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-slate">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.
Breakpoint variant
You can combine responsive breakpoints like sm:ls-*,md:ls-*, lg:ls-*, and xxl:ls-* to allow targeting specific utilities in different viewports.
<div class="ls-1 md:ls-2 ..."></div>Hover variant
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>