TypographyText Underline Offset

Text Underline Offset

Controls offsets of an underline text decoration line.

ClassStyle
tuo-0text-underline-offset: 0px;
tuo-1text-underline-offset: 1px;
tuo-2text-underline-offset: 2px;
tuo-4text-underline-offset: 4px;
tuo-8text-underline-offset: 8px;
tuo-autotext-underline-offset: auto;

Auto

Initial value

The browser will determine the appropriate offset for the underline based on the font and styling.

<div class="bg-indigo-1 p-4 rad-1">
<p class="bg-white fs-lg p-4 rad-1 ta-c tc-slate td-u tuo-auto">Sphinx of black quartz, judge my vow.</p>
</div>

0

The underline will be positioned directly under the text with no additional offset.

<div class="bg-indigo-1 p-4 rad-1">
<p class="bg-white fs-lg p-4 rad-1 ta-c tc-slate td-u tuo-0">Sphinx of black quartz, judge my vow.</p>
</div>

1

The underline will be positioned 1px below the text.

<div class="bg-indigo-1 p-4 rad-1">
<p class="bg-white fs-lg p-4 rad-1 ta-c tc-slate td-u tuo-1">Sphinx of black quartz, judge my vow.</p>
</div>

2

The underline will be positioned 2px below the text.

<div class="bg-indigo-1 p-4 rad-1">
<p class="bg-white fs-lg p-4 rad-1 ta-c tc-slate td-u tuo-2">Sphinx of black quartz, judge my vow.</p>
</div>

4

The underline will be positioned 4px below the text.

<div class="bg-indigo-1 p-4 rad-1">
<p class="bg-white fs-lg p-4 rad-1 ta-c tc-slate td-u tuo-4">Sphinx of black quartz, judge my vow.</p>
</div>

8

The underline will be positioned 8px below the text.

<div class="bg-indigo-1 p-4 rad-1">
<p class="bg-white fs-lg p-4 rad-1 ta-c tc-slate td-u tuo-8">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:tuo-*, md:tuo-*, lg:tuo-*, and xxl:tuo-* to allow targeting specific utilities in different viewports.

Using hover states

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