Typography
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:
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 ..."> <!-- ... --></p>
Learn more about using variants in the variants documentation.