TypographyText Indent

Text Indent

Controls the indentation, or the space before a line of block text.

ClassStyle
ti-0text-indent: 0px;
ti-1text-indent: 1px;
ti-2text-indent: 0.25rem;
ti-3text-indent: 0.5rem;
ti-4text-indent: 0.75rem;

0

Initial value

The text will have no indentation at the start of the paragraph.

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

1

The text will be indented slightly at the start of the paragraph.

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

2

The text will be indented a small amount at the start of the paragraph.

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

3

The text will be indented moderately at the start of the paragraph.

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

4

The text will be indented more significantly at the start of the paragraph.

<div class="bg-indigo-1 p-4 rad-1">
<p class="bg-white fs-lg p-4 rad-1 tc-slate ti-4">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:ti-*, md:ti-*, lg:ti-*, and xxl:ti-* to allow targeting specific utilities in different viewports.

Using hover states

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