Text Indent
Controls the indentation, or the space before a line of block text.
Utility | Properties |
---|---|
Error: 429 |
0
Initial value
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.
Media modifier
You can combine responsive breakpoints like sm:-*
,md:-*
, lg:-*
, and xxl:-*
allows targeting specific utilities in different viewports.
<div class="ti-1 md:ti-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="ti-1 h:ti-2 ..."></div>