Text Decoration Thickness
Controls the thickness of text decorations.
| Class | Style |
|---|---|
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; |
Auto
Initial value
The text will have a default decoration thickness.
<div class="bg-indigo-1 p-4 rad-1"> <p class="bg-white fs-lg p-4 rad-1 ta-c tc-slate tdl-u tdt-auto">Sphinx of black quartz, judge my vow.</p></div>0
The text will have no visible decoration thickness.
<div class="bg-indigo-1 p-4 rad-1"> <p class="bg-white fs-lg p-4 rad-1 ta-c tc-slate tdl-u tdt-0">Sphinx of black quartz, judge my vow.</p></div>1
The text will have a thin decoration line.
<div class="bg-indigo-1 p-4 rad-1"> <p class="bg-white fs-lg p-4 rad-1 ta-c tc-slate tdl-u tdt-1">Sphinx of black quartz, judge my vow.</p></div>2
The text will have a slightly thicker decoration line.
<div class="bg-indigo-1 p-4 rad-1"> <p class="bg-white fs-lg p-4 rad-1 ta-c tc-slate tdl-u tdt-2">Sphinx of black quartz, judge my vow.</p></div>3
The text will have a moderately thick decoration line.
<div class="bg-indigo-1 p-4 rad-1"> <p class="bg-white fs-lg p-4 rad-1 ta-c tc-slate tdl-u tdt-3">Sphinx of black quartz, judge my vow.</p></div>4
The text will have a thick decoration line.
<div class="bg-indigo-1 p-4 rad-1"> <p class="bg-white fs-lg p-4 rad-1 ta-c tc-slate tdl-u tdt-4">Sphinx of black quartz, judge my vow.</p></div>Using utility variants
Learn how to override existing utilities based on the user's screen size or other factors, such as hover states.
Using media queries
You can combine responsive breakpoints like sm:tdt-*, md:tdt-*, lg:tdt-*, and xxl:tdt-* to allow targeting specific utilities in different viewports.
Using hover states
Alternatively, you can apply :hover by using h:tdt-* utility to override elements and change their values when hovering over them.