Skip to content
Support Yumma CSS by starring us on GitHub!

Text Decoration Thickness

Controls the thickness of text decorations.

Class Properties

tdt-0

text-decoration-thickness: 0px;

tdt-1

text-decoration-thickness: 1px;

tdt-2

text-decoration-thickness: 2px;

tdt-3

text-decoration-thickness: 3px;

tdt-4

text-decoration-thickness: 4px;

tdt-auto

text-decoration-thickness: auto;

tdt-ff

text-decoration-thickness: from-font;

0

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

The quick brown fox jumps over the lazy dog.

<div class="bg-l-indigo-6 p-4 rad-1">
<p class="bg-white fs-sm p-4 rad-1 ta-c tc-lead tdl-u tdt-0">The quick brown fox jumps over the lazy dog.</p>
</div>

1

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

The quick brown fox jumps over the lazy dog.

<div class="bg-l-indigo-6 p-4 rad-1">
<p class="bg-white fs-sm p-4 rad-1 ta-c tc-lead tdl-u tdt-1">The quick brown fox jumps over the lazy dog.</p>
</div>

2

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

The quick brown fox jumps over the lazy dog.

<div class="bg-l-indigo-6 p-4 rad-1">
<p class="bg-white fs-sm p-4 rad-1 ta-c tc-lead tdl-u tdt-2">The quick brown fox jumps over the lazy dog.</p>
</div>

3

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

The quick brown fox jumps over the lazy dog.

<div class="bg-l-indigo-6 p-4 rad-1">
<p class="bg-white fs-sm p-4 rad-1 ta-c tc-lead tdl-u tdt-3">The quick brown fox jumps over the lazy dog.</p>
</div>

4

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

The quick brown fox jumps over the lazy dog.

<div class="bg-l-indigo-6 p-4 rad-1">
<p class="bg-white fs-sm p-4 rad-1 ta-c tc-lead tdl-u tdt-4">The quick brown fox jumps over the lazy dog.</p>
</div>

Utilizing utilities conditionally

Override existing utilities based on the user's screen size or other factors, such as hover states. Learn more about modifiers in our documentation.

Responsive breakpoints

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

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

Utilizing utilities conditionally

Override existing utilities based on the user's screen size or other factors, such as hover states. Learn more about modifiers in our documentation.

Hover states

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

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