Text Decoration Line
Controls the text decoration line of an element.
Utility | Properties |
---|---|
Error: 429 |
Line Through
This example sets the text decoration line to line-through. The text will be displayed with a line through it, indicating that it is struck out.
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-lt">Sphinx of black quartz, judge my vow.</p></div>
None
This example sets the text decoration line to none. The text will be displayed without any decoration lines.
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-none">Sphinx of black quartz, judge my vow.</p></div>
Underline
This example sets the text decoration line to underline. The text will be displayed with an underline, emphasizing the content.
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">Sphinx of black quartz, judge my vow.</p></div>
Overline
This example sets the text decoration line to overline. The text will be displayed with a line above it.
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-o">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="tdl-none md:tdl-u ..."></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="tdl-none h:tdl-u ..."></div>