Text Underline Offset
Controls offsets of an underline text decoration line.
Utility | Properties |
---|---|
tuo-0 | text-underline-offset: 0px; |
tuo-1 | text-underline-offset: 1px; |
tuo-2 | text-underline-offset: 2px; |
tuo-4 | text-underline-offset: 4px; |
tuo-8 | text-underline-offset: 8px; |
tuo-auto | text-underline-offset: auto; |
0
This example sets the text underline offset to 0px. The underline will be positioned directly under the text with no additional offset.
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-lead td-u tuo-0">Sphinx of black quartz, judge my vow.</p></div>
1
This example sets the text underline offset to 1px. The underline will be positioned 1 pixel below the text.
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-lead td-u tuo-1">Sphinx of black quartz, judge my vow.</p></div>
2
This example sets the text underline offset to 2px. The underline will be positioned 2 pixels below the text.
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-lead td-u tuo-2">Sphinx of black quartz, judge my vow.</p></div>
4
This example sets the text underline offset to 4px. The underline will be positioned 4 pixels below the text.
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-lead td-u tuo-4">Sphinx of black quartz, judge my vow.</p></div>
8
This example sets the text underline offset to 8px. The underline will be positioned 8 pixels below the text.
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-lead td-u tuo-8">Sphinx of black quartz, judge my vow.</p></div>
Auto
This example sets the text underline offset to auto. The browser will determine the appropriate offset for the underline based on the font and styling.
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-lead td-u tuo-auto">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.
You can combine responsive breakpoints like sm:tuo-*
,md:tuo-*
, lg:tuo-*
, and xxl:tuo-*
allows targeting specific utilities in different viewports.
<div class="tuo-1 md:tuo-2 ..."></div>
Alternatively, you can apply :hover
by using h:tuo-*
utility to override elements and change their values when hovering over them.
<div class="tuo-1 h:tuo-2 ..."></div>