Text Decoration Color

Set the color for text decorations.

Widely available

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

Chrome
Edge
Firefox
Safari

Usage

London. Michaelmas term lately over, and the Lord Chancellor sitting in Lincoln's Inn Hall. Implacable November weather. As much mud in the streets as if the waters had but newly retired from the face of the earth, and it would not be wonderful to meet a Megalosaurus, forty feet long or so, waddling like an elephantine lizard up Holborn Hill. London. Michaelmas term lately over, and the Lord Chancellor sitting in Lincoln's Inn Hall. Implacable November weather. As much mud in the streets as if the waters had but newly retired from the face of the earth, and it would not be wonderful to meet a Megalosaurus, forty feet long or so, waddling like an elephantine lizard up Holborn Hill.

<div class="c-slate bg-black">
<span class="c-p h:bg-red-11 tdc-red tdl-u tdt-2">London.</span> Michaelmas term lately over, and the Lord Chancellor sitting in Lincoln's Inn Hall. Implacable November weather.
As much mud in the streets as if the waters had but newly retired from the face of the earth, and it would not be wonderful to meet a
<span class="c-p h:bg-yellow-11 tdc-yellow tdl-u tdt-2"> Megalosaurus, forty feet long or so,</span> waddling like an elephantine lizard up Holborn Hill. London. Michaelmas term lately
over, and the Lord Chancellor sitting in Lincoln's Inn Hall. Implacable November weather. As much mud in the streets as if the waters had but newly retired from the face of the
earth, and it would not be wonderful to meet a Megalosaurus, forty feet long or so, waddling like an elephantine lizard up
<span class="c-p h:bg-teal-11 tdc-teal tdl-u tdt-2"> Holborn Hill.</span>
</div>

Responsiveness

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

Target viewport sizes with breakpoint prefixes.

sm:tdc-[value]
Small640px
md:tdc-[value]
Medium768px
lg:tdc-[value]
Large1024px
xxl:tdc-[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:tdc-[value]

Opacity Modifiers

Adjust color transparency by appending an opacity suffix.

Append /[opacity] to any color utility to control its transparency level.

Syntax:tdc-[color]/[0-100]