Text Indent
Controls the indentation, or the space before a line of block text.
Utility | Properties |
---|---|
ti-0 | text-indent: 0px; |
ti-1 | text-indent: 1px; |
ti-2 | text-indent: 0.25rem; |
ti-3 | text-indent: 0.5rem; |
ti-4 | text-indent: 0.75rem; |
0
This example sets the text indent to 0px. The text will have no indentation at the start of the paragraph.
Sphinx of black quartz, judge my vow.
<div class="bg-indigo-1 p-4 rad-1"> <p class="bg-white fs-lg p-4 rad-1 tc-lead ti-0">Sphinx of black quartz, judge my vow.</p></div>
1
This example sets the text indent to 1px. The text will be indented slightly at the start of the paragraph.
Sphinx of black quartz, judge my vow.
<div class="bg-indigo-1 p-4 rad-1"> <p class="bg-white fs-lg p-4 rad-1 tc-lead ti-1">Sphinx of black quartz, judge my vow.</p></div>
2
This example sets the text indent to 0.25rem. The text will be indented a small amount at the start of the paragraph.
Sphinx of black quartz, judge my vow.
<div class="bg-indigo-1 p-4 rad-1"> <p class="bg-white fs-lg p-4 rad-1 tc-lead ti-2">Sphinx of black quartz, judge my vow.</p></div>
3
This example sets the text indent to 0.5rem. The text will be indented moderately at the start of the paragraph.
Sphinx of black quartz, judge my vow.
<div class="bg-indigo-1 p-4 rad-1"> <p class="bg-white fs-lg p-4 rad-1 tc-lead ti-3">Sphinx of black quartz, judge my vow.</p></div>
4
This example sets the text indent to 0.75rem. The text will be indented more significantly at the start of the paragraph.
Sphinx of black quartz, judge my vow.
<div class="bg-indigo-1 p-4 rad-1"> <p class="bg-white fs-lg p-4 rad-1 tc-lead ti-4">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.
You can combine responsive breakpoints like sm:ti-*
,md:ti-*
, lg:ti-*
, and xxl:ti-*
allows targeting specific utilities in different viewports.
<div class="ti-1 md:ti-2 ..."></div>
Alternatively, you can apply :hover
by using h:ti-*
utility to override elements and change their values when hovering over them.
<div class="ti-1 h:ti-2 ..."></div>