Contents
Quick reference
Class | Properties |
---|---|
.decoration-current | text-decoration-color: current; |
.decoration-transparent | text-decoration-color: transparent; |
.decoration-primary | text-decoration-color: var(--bs-primary); |
.decoration-discovery | text-decoration-color: var(--bs-discovery); |
.decoration-secondary | text-decoration-color: var(--bs-secondary); |
.decoration-success | text-decoration-color: var(--bs-success); |
.decoration-danger | text-decoration-color: var(--bs-danger); |
.decoration-warning | text-decoration-color: var(--bs-warning); |
.decoration-info | text-decoration-color: var(--bs-info); |
.decoration-light | text-decoration-color: var(--bs-light); |
.decoration-dark | text-decoration-color: var(--bs-dark); |
.decoration-white | text-decoration-color: var(--bs-white); |
.decoration-black | text-decoration-color: tvar(--bs-black); |
Basic usage
Setting the text decoration color
Use the decoration-{color}
utilities to change the color of an element’s text decoration.
I’m Derek, an astro-engineer based in Tattooine. I like to build X-Wings at My Company, Inc. Outside of work, I like to watch pod-racing and have light-saber fights.
<div>
<p>
I’m Derek, an astro-engineer based in Tattooine. I like to build X-Wings at
<a class="text-decoration-underline decoration-primary">My Company, Inc</a>.
Outside of work, I like to <a class="text-decoration-underline decoration-danger">watch
pod-racing</a> and have <a class="text-decoration-underline decoration-warning">light-saber</a> fights.
</p>
</div>
Edit this page on Github
Last updated on April 6, 2024