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.
<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.
<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.
<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.
<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>Using utility variants
Learn how to override existing utilities based on the user's screen size or other factors, such as hover states.
Using media queries
You can combine responsive breakpoints like sm:tt-*, md:tt-*, lg:tt-*, and xxl:tt-* to allow targeting specific utilities in different viewports.
Using hover states
Alternatively, you can apply :hover by using h:tt-* utility to override elements and change their values when hovering over them.