Browse documentation
Reference / Typography
First-line indent
Indent the first formatted line of a paragraph using a spacing token or a custom length.
Working example
At sunrise the shutters open, revealing a long table stacked with unbound sheets.
For a hanging indent, combine a negative first-line indent with enough inline-start padding for the remaining lines.
<p class="max-w-xs indent-[2ch] font-serif leading-relaxed">
At sunrise the shutters open, revealing a long table stacked with unbound sheets.
</p>Class reference
| Class | CSS declarations |
|---|---|
indent-0 | text-indent: 0px; |
indent-4 | text-indent: 1rem; |
indent-8 | text-indent: 2rem; |
indent-[2ch] | text-indent: 2ch; |
-indent-4 | text-indent: -1rem; |
View full generated CSS
.-indent-4 {
text-indent: -1rem;
}
.indent-0 {
text-indent: 0px;
}
.indent-4 {
text-indent: 1rem;
}
.indent-8 {
text-indent: 2rem;
}
.indent-\[2ch\] {
text-indent: 2ch;
}