Skip to content

Typography

This guide covers all utilities related to text and fonts, including font weight, line height, alignment, and list styles.

Font Weight

Control the weight (boldness) of text.

ClassCSS
is-font-lightfont-weight: 300;
is-font-normalfont-weight: 400;
is-font-mediumfont-weight: 500;
is-font-semiboldfont-weight: 600;
is-font-boldfont-weight: 700;

Line Height

Control the height of a line of text.

ClassCSS
is-line-noneline-height: 1;
is-line-tightline-height: 1.25;
is-line-snugline-height: 1.375;
is-line-normalline-height: 1.5;

Text Alignment

Control the horizontal alignment of text.

ClassCSS
is-text-starttext-align: start;
is-text-endtext-align: end;
is-text-lefttext-align: left;
is-text-righttext-align: right;
is-text-centertext-align: center;

Vertical Alignment

Control the vertical alignment of an inline or table-cell element.

ClassCSS
is-align-middlevertical-align: middle;
is-align-topvertical-align: text-top;
is-align-bottomvertical-align: text-bottom;

Text Decoration

ClassCSS
is-text-nonetext-decoration: none;

List Styles

Control the appearance of lists.

ClassCSS
is-list-disclist-style-type: disc;
is-list-decimallist-style-type: decimal;
is-list-insidelist-style-position: inside;
is-list-outsidelist-style-position: outside;

Text Handling

Truncate

Truncate long text with an ellipsis (...) to prevent it from overflowing its container.

ClassCSS
is-truncateoverflow: hidden; text-overflow: ellipsis; white-space: nowrap;

Use Case: This is extremely useful for things like file names, user comments, or long titles in a constrained space, ensuring your layout doesn't break.

Example:

html
<p class="is-truncate is-w-64">
  This is a very long piece of text that will be truncated if it doesn't fit.
</p>