TypographyText Decoration Style

Text Decoration Style

Control the style of text decoration.

Widely available

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

Chrome
Edge
Firefox
Safari

Usage

Solid

Initial value

Sphinx of black quartz, judge my vow.

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

Dashed

Sphinx of black quartz, judge my vow.

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

Wavy

Sphinx of black quartz, judge my vow.

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

Responsive Design

Use breakpoint prefixes to target different screen sizes. Styles apply from the breakpoint & up.

Target viewport sizes with breakpoint prefixes.

sm:tds-[value]
Small640px
md:tds-[value]
Medium768px
lg:tds-[value]
Large1024px
xxl:tds-[value]
Extra Large1536px

Hover State

Apply styles conditionally on hover using the h: prefix.

Add the h: prefix to apply styles only when the user hovers over the element.

Syntax:h:tds-[value]