Typography

Text Decoration

Utilities for sets the text underline or line-through of an element.


Variant

Active Checked Child-Selection Dark Mode Disabled Expand First-Last-Selection First-Letter Focus Focus-Visible Focus-Within Fullscreen Group-Focus Group-Hover Hover Landscape Light Mode Portrait Reduce-Motion Responsive Selection-Hover Visited

API

classcss
text-{options} {thickness} {offset}text-decoration: {options};
text-decoration-thickness: {thickness};
text-underline-offset: {offset}
classcss
underlinetext-decoration: underline
Text
line-throughtext-decoration: line-through
Text
no-decotext-decoration: none
Text
classcss
line-thickness-1text-decoration-thickness: 0.2em
Text
line-thickness-2text-decoration-thickness: 0.3em
Text
line-thickness-3text-decoration-thickness: 0.4em
Text
line-thickness-4text-decoration-thickness: 0.5em
Text
line-thickness-5text-decoration-thickness: 0.6em
Text
classcss
line-offset-1text-decoration-thickness: 0.1em
Text
line-offset-2text-decoration-thickness: 0.2em
Text
line-offset-3text-decoration-thickness: 0.3em
Text
line-offset-4text-decoration-thickness: 0.4em
Text
line-offset-5text-decoration-thickness: 0.5em
Text

Usage

Text Underline
<div class="text-underline">
...
</div>
HTML
.dummy {
@extend
.text-underline;
}
SCSS
Text Underline Thickness
<div class="text-underline line-thickness-3">
...
</div>
HTML
.dummy {
@extend
.text-underline,
.line-thickness-3;
}
SCSS
Text Underline Offset
<div class="text-underline line-offset-3">
...
</div>
HTML
.dummy {
@extend
.text-underline,
.line-offset-3;
}
SCSS