Skip to content

Text Colors

These utility classes set text colors using semantic names for various states and contexts. Use them to ensure consistent text color application across your UI.

Usage

Base Text Colors

Class NameDescriptionColor Token
.spr-text-color-strongStrong emphasis text colorspr-text-mushroom-950
.spr-text-color-supportingSupporting text colorspr-text-mushroom-500
.spr-text-color-baseBase text color for normal contentspr-text-mushroom-600
.spr-text-color-weakWeak emphasis text colorspr-text-mushroom-400
.spr-text-color-disabledText color for disabled elementsspr-text-white-400
.spr-text-color-on-fill-disabledText color on filled disabled elementsspr-text-white-500

Inverted Text Colors

Class NameDescriptionColor Token
.spr-text-color-inverted-strongStrong text on dark backgroundsspr-text-white-50
.spr-text-color-inverted-baseBase text on dark backgroundsspr-text-mushroom-200
.spr-text-color-inverted-weakWeak text on dark backgroundsspr-text-mushroom-400
.spr-text-color-inverted-disabledDisabled text on dark backgroundsspr-text-white-600

Brand Text Colors

Class NameDescriptionColor Token
.spr-text-color-brand-baseBrand text colorspr-text-kangkong-700
.spr-text-color-brand-hoverBrand text on hoverspr-text-kangkong-800
.spr-text-color-brand-pressedBrand text on pressedspr-text-kangkong-900

Success Text Colors

Class NameDescriptionColor Token
.spr-text-color-success-baseSuccess text colorspr-text-kangkong-700
.spr-text-color-success-hoverSuccess text on hoverspr-text-kangkong-800
.spr-text-color-success-pressedSuccess text on pressedspr-text-kangkong-900

Information Text Colors

Class NameDescriptionColor Token
.spr-text-color-information-baseInformation text colorspr-text-blueberry-800
.spr-text-color-information-hoverInformation text on hoverspr-text-blueberry-900
.spr-text-color-information-pressedInformation text on pressedspr-text-blueberry-950

Danger Text Colors

Class NameDescriptionColor Token
.spr-text-color-danger-baseDanger text colorspr-text-tomato-700
.spr-text-color-danger-hoverDanger text on hoverspr-text-tomato-800
.spr-text-color-danger-pressedDanger text on pressedspr-text-tomato-900

Pending Text Colors

Class NameDescriptionColor Token
.spr-text-color-pending-basePending text colorspr-text-mango-800
.spr-text-color-pending-hoverPending text on hoverspr-text-mango-900
.spr-text-color-pending-pressedPending text on pressedspr-text-mango-950

Caution Text Colors

Class NameDescriptionColor Token
.spr-text-color-caution-baseCaution text colorspr-text-carrot-800
.spr-text-color-caution-hoverCaution text on hoverspr-text-carrot-900
.spr-text-color-caution-pressedCaution text on pressedspr-text-carrot-950

Accent Text Colors

Class NameDescriptionColor Token
.spr-text-color-accent-baseAccent text colorspr-text-wintermelon-700
.spr-text-color-accent-hoverAccent text on hoverspr-text-wintermelon-800
.spr-text-color-accent-pressedAccent text on pressedspr-text-wintermelon-900

Special Text Colors

Class NameDescriptionColor Token
.spr-text-color-specialty-token-darkSpecialty dark token textspr-text-mushroom-950

Examples

html
<!-- Basic usage -->
<p class="spr-text-color-strong">Strong emphasis text</p>
<p class="spr-text-color-base">Normal body text</p>
<p class="spr-text-color-weak">Secondary information</p>

<!-- Interactive states -->
<a href="#" class="spr-text-color-brand-base hover:spr-text-color-brand-hover"> Brand link </a>

<!-- Status messages -->
<p class="spr-text-color-success-base">Success message</p>
<p class="spr-text-color-danger-base">Error message</p>
<p class="spr-text-color-information-base">Information message</p>

<!-- Inverted for dark backgrounds -->
<div class="spr-background-color-inverted">
  <p class="spr-text-color-inverted-strong">Title on dark background</p>
  <p class="spr-text-color-inverted-base">Body text on dark background</p>
</div>