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.
<span className="text-11">The quick brown fox jumped over the lazy dog.</span>
<span className="text-10">The quick brown fox jumped over the lazy dog.</span>
<span className="text-9">The quick brown fox jumped over the lazy dog.</span>
<span className="text-8">The quick brown fox jumped over the lazy dog.</span>
<span className="text-7">The quick brown fox jumped over the lazy dog.</span>
<span className="text-6">The quick brown fox jumped over the lazy dog.</span>
<span className="text-5">The quick brown fox jumped over the lazy dog.</span>
<span className="text-4">The quick brown fox jumped over the lazy dog.</span>
<span className="text-3">The quick brown fox jumped over the lazy dog.</span>
<span className="text-2">The quick brown fox jumped over the lazy dog.</span>
<span className="text-1">The quick brown fox jumped over the lazy dog.</span>

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).

$bg-theme-colors: (
	text-100: (
		font-size: 100px,
	),
	'%text-200': (
		font-size: 200px,
	),
	'.text-200': (
		extend: '%text-200',
	),
	'.text-250': (
		extend: '%text-200',
	),
);

Outputs:

.text-100 {
	font-size: 100px;
}

.text-200,
.text-250 {
	font-size: 200px;
}

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.
<span className="text-weight-lighter"
	>The quick brown fox jumped over the lazy dog.</span
>
<span className="text-weight-light"
	>The quick brown fox jumped over the lazy dog.</span
>
<span className="text-weight-normal"
	>The quick brown fox jumped over the lazy dog.</span
>
<span className="text-weight-semi-bold"
	>The quick brown fox jumped over the lazy dog.</span
>
<span className="text-weight-bold"
	>The quick brown fox jumped over the lazy dog.</span
>
<span className="text-weight-bolder"
	>The quick brown fox jumped over the lazy dog.</span
>

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.
<span className="text-italic"
	>The quick brown fox jumped over the lazy dog.</span
>
<span className="text-monospace"
	>The quick brown fox jumped over the lazy dog.</span
>

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 January 29, 2025 at 1:35:05 AM