TypographyText Decoration

Text Decoration

Control 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

Usage

None

Sphinx of black quartz, judge my vow.

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

Underline

Sphinx of black quartz, judge my vow.

<p class="fs-lg ta-c c-slate td-u">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:td-[value]
Small640px
md:td-[value]
Medium768px
lg:td-[value]
Large1024px
xxl:td-[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:td-[value]