Text Transform
Controls the capitalization and case of text content.
| Class | Style |
|---|---|
| tt-c | text-transform: capitalize;
|
| tt-l | text-transform: lowercase;
|
| tt-n | text-transform: none;
|
| tt-u | text-transform: uppercase;
|
None
Initial value
The text will be displayed as it is, without any transformation applied.
Sphinx of black quartz, judge my vow.
<div class="bg-indigo-1 p-4 rad-1"> <p class="bg-white fs-lg p-4 rad-1 ta-c tc-slate tt-none">Sphinx of black quartz, judge my vow.</p></div>Capitalize
The first letter of each word will be converted to uppercase.
Sphinx of black quartz, judge my vow.
<div class="bg-indigo-1 p-4 rad-1"> <p class="bg-white fs-lg p-4 rad-1 ta-c tc-slate tt-c">Sphinx of black quartz, judge my vow.</p></div>Lowercase
All letters in the text will be converted to lowercase.
Sphinx of black quartz, judge my vow.
<div class="bg-indigo-1 p-4 rad-1"> <p class="bg-white fs-lg p-4 rad-1 ta-c tc-slate tt-l">Sphinx of black quartz, judge my vow.</p></div>Uppercase
All letters in the text will be converted to uppercase.
Sphinx of black quartz, judge my vow.
<div class="bg-indigo-1 p-4 rad-1"> <p class="bg-white fs-lg p-4 rad-1 ta-c tc-slate tt-u">Sphinx of black quartz, judge my vow.</p></div>Conditional styles
Learn how to override existing utilities based on the user’s screen size or other factors, such as hover states.
Breakpoint variant
You can combine responsive breakpoints like sm:tt-*,md:tt-*, lg:tt-*, and xxl:tt-* to allow targeting specific utilities in different viewports.
<div class="tt-none md:tt-c ..."></div>Hover variant
Alternatively, you can apply :hover by using h:tt-* utility to override elements and change their values when hovering over
them.
<div class="tt-none h:tt-c ..."></div>