TypographyText Decoration

Text Decoration

Controls the text decoration of an element.

Widely available

This feature is well established and works across many devices and browser versions.

Chrome
Edge
Firefox
Safari
ClassStyle
td-nonetext-decoration: none;
td-utext-decoration: underline;

None

The text will be displayed without any decoration.

Sphinx of black quartz, judge my vow.

<p class="fs-lg ta-c tc-slate td-none">Sphinx of black quartz, judge my vow.</p>

Underline

The text will be displayed with an underline.

Sphinx of black quartz, judge my vow.

<p class="fs-lg ta-c tc-slate td-u">Sphinx of black quartz, judge my vow.</p>

Using utility variants

Learn how to override existing utilities based on the user's screen size or other factors, such as hover states.

Targeting different viewports

You can combine responsive breakpoints like sm:td-*, md:td-*, lg:td-*, and xxl:td-* to allow targeting specific utilities in different viewports.

Targeting hover states

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