TypographyText Decoration Style

Text Decoration Style

Controls the style of text decoration.

Widely available

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

Chrome
Edge
Firefox
Safari
ClassStyle
tds-dtext-decoration-style: dashed;
tds-stext-decoration-style: solid;
tds-wtext-decoration-style: wavy;

Solid

Initial value

The text will be displayed with a solid line for its decoration.

Sphinx of black quartz, judge my vow.

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

Dashed

The text will be displayed with a dashed line for its decoration.

Sphinx of black quartz, judge my vow.

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

Wavy

The text will be displayed with a wavy line for its decoration.

Sphinx of black quartz, judge my vow.

<p class="fs-lg ta-c tc-slate tdl-u tds-w">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:tds-*, md:tds-*, lg:tds-*, and xxl:tds-* to allow targeting specific utilities in different viewports.

Targeting hover states

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