TypographyText Transform

Text Transform

Controls the capitalization and case of text content.

Widely available

This feature is well established and works across many devices and browser versions.

Chrome
Edge
Firefox
Safari
ClassStyle
tt-ctext-transform: capitalize;
tt-ltext-transform: lowercase;
tt-ntext-transform: none;
tt-utext-transform: uppercase;

None

Initial value

The text will be displayed as it is, without any transformation applied.

Sphinx of black quartz, judge my vow.

<p class="fs-lg ta-c tc-slate tt-none">Sphinx of black quartz, judge my vow.</p>

Capitalize

The first letter of each word will be converted to uppercase.

Sphinx of black quartz, judge my vow.

<p class="fs-lg ta-c tc-slate tt-c">Sphinx of black quartz, judge my vow.</p>

Lowercase

All letters in the text will be converted to lowercase.

Sphinx of black quartz, judge my vow.

<p class="fs-lg ta-c tc-slate tt-l">Sphinx of black quartz, judge my vow.</p>

Uppercase

All letters in the text will be converted to uppercase.

Sphinx of black quartz, judge my vow.

<p class="fs-lg ta-c tc-slate tt-u">Sphinx of black quartz, judge my vow.</p>

Using utility variants

Learn how to override existing utilities based on the user's screen size or other factors, such as hover states.

Targeting different viewports

You can combine responsive breakpoints like sm:tt-*, md:tt-*, lg:tt-*, and xxl:tt-* to allow targeting specific utilities in different viewports.

Targeting hover states

Alternatively, you can apply :hover by using h:tt-* utility to override elements and change their values when hovering over them.