Sizes

Utility classes for changing the font-size of text.

UtilityRemPxExample
text-112.5rem40pxThe quick brown fox jumped over the lazy dog.
text-102.25rem36pxThe quick brown fox jumped over the lazy dog.
text-92rem32pxThe quick brown fox jumped over the lazy dog.
text-81.75rem28pxThe quick brown fox jumped over the lazy dog.
text-71.5rem24pxThe quick brown fox jumped over the lazy dog.
text-61.25rem20pxThe quick brown fox jumped over the lazy dog.
text-51.125rem18pxThe quick brown fox jumped over the lazy dog.
text-41rem16pxThe quick brown fox jumped over the lazy dog.
text-30.875rem14pxThe quick brown fox jumped over the lazy dog.
text-20.75rem12pxThe quick brown fox jumped over the lazy dog.
text-10.625rem10pxThe quick brown fox jumped over the lazy dog.

Snippet

Text Sizes Sass API

The map $font-sizes allows generating any number of text size variants. If a key starts with ., # or %, Clay will output it as is, otherwise we will prepend . to the key (e.g., .text-100).

Snippet

Outputs:

Snippet

Weights

Utility classes for changing the font-weight of text.

UtilityValueExample
text-weight-lighterlighterThe quick brown fox jumped over the lazy dog.
text-weight-light300The quick brown fox jumped over the lazy dog.
text-weight-normal400The quick brown fox jumped over the lazy dog.
text-weight-semi-bold500The quick brown fox jumped over the lazy dog.
text-weight-bold700The quick brown fox jumped over the lazy dog.
text-weight-bolder900The quick brown fox jumped over the lazy dog.

Snippet

Styles

Utility classes for changing the font-style of text.

UtilityValueExample
text-italicitalicThe quick brown fox jumped over the lazy dog.
text-monospaceSFMono-Regular, Menlo, Monaco, Consolas, ‘Liberation Mono’, ‘Courier New’, monospaceThe quick brown fox jumped over the lazy dog.

Snippet

Alignment

Text Alignment Utilities set the text-align property. Only the left, right, and center values have responsive alignment, use the format text-{sm|md|lg|xl}-{left|right|center} to target specific screen sizes (e.g., text-md-center).

UtilityValue
text-justifyjustify
text-leftleft
text-rightright
text-centercenter

Wrap

Text Wrap Utilities set the white-space property.

UtilityValue
text-wrapnormal
text-nowrapnowrap

Transform

Text Transform Utilities set the text-transform property.

UtilityValue
text-lowercaselowercase
text-uppercaseuppercase
text-capitalizecapitalize

Miscellaneous

UtilityValue
text-hidebackground-color: transparent;
border: 0;
color: transparent;
font: 0/0 a;
text-shadow: none;
text-decoration-nonetext-decoration: none !important;
text-breakoverflow-wrap: break-word !important;
word-wrap: break-word !important;
Edit this page on GitHub

Contributors

Matuzalém Teles

Last edited May 9, 2025 at 6:15:38 AM