Zazz Design Framework
baseUtilities

Text & font

Text alignment, transform, font family, text wrapping, line clamping, and tabular figures.

Typographic utility classes in _utilities.css handle text alignment, casing, font family, and line wrapping.

Text align

ClassDeclaration
text-lefttext-align: left
text-centertext-align: center
text-righttext-align: right
text-justifytext-align: justify

All four classes support responsive prefixes (e.g. text-center @md:text-left).

Text transform

ClassDeclaration
uppercasetext-transform: uppercase
lowercasetext-transform: lowercase
capitalizetext-transform: capitalize
normal-casetext-transform: none

Font family

ClassToken
font-sansvar(--font-body)
font-serifvar(--font-heading)
font-monovar(--font-family-mono)

Text wrapping and overflow

ClassDeclarationPurpose
text-balancetext-wrap: balanceBalanced line breaks in short headings
text-prettytext-wrap: prettyPrevent orphan words in body text
leading-noneline-height: 1Single-line labels
tabular-numsfont-variant-numeric: tabular-numsAlign numeric columns in tables/data

Line clamp

ClassLines
line-clamp-11
line-clamp-22
line-clamp-33
line-clamp-44
line-clamp-55
line-clamp-66
<h3 class="text-h3 text-balance">Balanced headline wrapping</h3>
<p class="text-sm text-muted-foreground line-clamp-2">
  Summary truncated with an ellipsis after two lines...
</p>

On this page