Text Decoration Thickness

new

Utilities for controlling the thickness of text decorations.

Quick reference

ClassProperties
.decoration-autotext-decoration-thickness: auto;
.decoration-from-fonttext-decoration-thickness: from-font;
.decoration-0text-decoration-thickness: 0px;
.decoration-1text-decoration-thickness: 1px;
.decoration-2text-decoration-thickness: 2px;
.decoration-4text-decoration-thickness: 4px;
.decoration-8text-decoration-thickness: 8px;

Basic usage

Setting the text decoration thickness

Use the decoration-{width} utilities to change the thickness of an element’s text decoration.

decoration-1

The quick brown fox jumps over the lazy dog.

decoration-2

The quick brown fox jumps over the lazy dog.

decoration-4

The quick brown fox jumps over the lazy dog.

<p class="text-decoration-underline decoration-1 ...">The quick brown fox...</p>
<p class="text-decoration-underline decoration-2 ...">The quick brown fox...</p>
<p class="text-decoration-underline decoration-4 ...">The quick brown fox...</p>