TypographyText Decoration

Text Decoration

Controls the text decoration of an element.

ClassStyle
td-nonetext-decoration: none;
td-utext-decoration: underline;

None

The text will be displayed without any decoration.

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

Underline

The text will be displayed with an underline.

<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">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:td-*, md:td-*, lg:td-*, and xxl:td-* to allow targeting specific utilities in different viewports.

Using hover states

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