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

For a hanging indent, combine a negative first-line indent with enough inline-start padding for the remaining lines.

HTML
<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

ClassCSS declarations
indent-0text-indent: 0px;
indent-4text-indent: 1rem;
indent-8text-indent: 2rem;
indent-[2ch]text-indent: 2ch;
-indent-4text-indent: -1rem;
View full generated CSS
Compiled 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;
}