text-decoration-style
Utilities for controlling the style of text decorations.
| Class | Styles |
|---|---|
decoration-solid | |
text-decoration-style: solid; |
|
| decoration-double |
text-decoration-style: double;
|
| decoration-dotted |
text-decoration-style: dotted;
|
| decoration-dashed |
text-decoration-style: dashed;
|
| decoration-wavy |
text-decoration-style: wavy;
|
Use utilities like decoration-dotted and decoration-dashed to change the text decoration style of an element:
decoration-solid
The quick brown fox jumps over the lazy dog.
decoration-double
The quick brown fox jumps over the lazy dog.
decoration-dotted
The quick brown fox jumps over the lazy dog.
decoration-dashed
The quick brown fox jumps over the lazy dog.
decoration-wavy
The quick brown fox jumps over the lazy dog.
<p class="underline decoration-solid">The quick brown fox...</p><p class="underline decoration-double">The quick brown fox...</p><p class="underline decoration-dotted">The quick brown fox...</p><p class="underline decoration-dashed">The quick brown fox...</p><p class="underline decoration-wavy">The quick brown fox...</p>
Prefix a text-decoration-style utility with a breakpoint variant like md: to only apply the utility at medium screen sizes and above:
<p class="underline md:decoration-dashed ..."> Lorem ipsum dolor sit amet...</p>
Learn more about using variants in the variants documentation.
On this page
[

From the creators of Tailwind CSS
Make your ideas look awesome, without relying on a designer.
“This is the survival kit I wish I had when I started building apps.”
Derrick Reimer, SavvyCal
](https://www.refactoringui.com/?ref=sidebar)
Copyright © 2026 Tailwind Labs Inc.·Trademark Policy