Skip to main content

Text Colors

Use these classes to set the text color of an element and all headings within it. They use the same base color scale as the background color classes, but apply to color instead of background-color.

Base Colors

ClassColor
.text-base-50var(--base-50)
.text-base-100var(--base-100)
.text-base-200var(--base-200)
.text-base-300var(--base-300)
.text-base-400var(--base-400)
.text-base-500var(--base-500)
.text-base-600var(--base-600)
.text-base-700var(--base-700)
.text-base-800var(--base-800)
.text-base-900var(--base-900)
.text-base-950var(--base-950)

Usage

Add the class to a container and it will apply the color to the element itself and all h1h6 headings within it.

<div class="text-base-100">
<h2>This heading will be base-100</h2>
<p>This paragraph will also be base-100</p>
</div>
tip

These classes respect the .dark and .light color mode classes, so the actual color values will adapt based on the active color mode.