Browse documentation

Reference / Typography

Hyphenation

Let the browser insert hyphens using the document language or explicitly mark acceptable break points.

Working example

A soft hyphen is invisible until a break occurs there. Automatic hyphenation depends on the browser’s dictionary for the element’s lang attribute.

HTML
<p lang="en" class="max-w-[12ch] hyphens-manual font-serif text-xl">
  An inter&shy;disciplinary publication.
</p>

Class reference

ClassCSS declarations
hyphens-nonehyphens: none;
hyphens-manualhyphens: manual;
hyphens-autohyphens: auto;
View full generated CSS
Compiled CSS
.hyphens-auto {
  hyphens: auto;
}
.hyphens-manual {
  hyphens: manual;
}
.hyphens-none {
  hyphens: none;
}