Skip to content

Text Decoration Thickness

Controls the thickness of text decorations.

Utility Properties
Error: 429

Auto

Initial value

This example sets the text decoration thickness to auto. The text will have a default decoration thickness.

Sphinx of black quartz, judge my vow.

<div class="bg-indigo-1 p-4 rad-1">
<p class="bg-white fs-lg p-4 rad-1 ta-c tc-lead tdl-u tdt-auto">Sphinx of black quartz, judge my vow.</p>
</div>

0

This example sets the text decoration thickness to 0px. The text will have no visible decoration thickness.

Sphinx of black quartz, judge my vow.

<div class="bg-indigo-1 p-4 rad-1">
<p class="bg-white fs-lg p-4 rad-1 ta-c tc-lead tdl-u tdt-0">Sphinx of black quartz, judge my vow.</p>
</div>

1

This example sets the text decoration thickness to 1px. The text will have a thin decoration line.

Sphinx of black quartz, judge my vow.

<div class="bg-indigo-1 p-4 rad-1">
<p class="bg-white fs-lg p-4 rad-1 ta-c tc-lead tdl-u tdt-1">Sphinx of black quartz, judge my vow.</p>
</div>

2

This example sets the text decoration thickness to 2px. The text will have a slightly thicker decoration line.

Sphinx of black quartz, judge my vow.

<div class="bg-indigo-1 p-4 rad-1">
<p class="bg-white fs-lg p-4 rad-1 ta-c tc-lead tdl-u tdt-2">Sphinx of black quartz, judge my vow.</p>
</div>

3

This example sets the text decoration thickness to 3px. The text will have a moderately thick decoration line.

Sphinx of black quartz, judge my vow.

<div class="bg-indigo-1 p-4 rad-1">
<p class="bg-white fs-lg p-4 rad-1 ta-c tc-lead tdl-u tdt-3">Sphinx of black quartz, judge my vow.</p>
</div>

4

This example sets the text decoration thickness to 4px. The text will have a thick decoration line.

Sphinx of black quartz, judge my vow.

<div class="bg-indigo-1 p-4 rad-1">
<p class="bg-white fs-lg p-4 rad-1 ta-c tc-lead tdl-u tdt-4">Sphinx of black quartz, judge my vow.</p>
</div>

Conditional styles

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

Media modifier

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

<div class="tdt-1 md:tdt-2 ..."></div>

Hover modifier

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

<div class="tdt-1 h:tdt-2 ..."></div>