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
.mc-text-color-strongStrong emphasis text colormc-text-mushroom-950
.mc-text-color-supportingSupporting text colormc-text-mushroom-500
.mc-text-color-baseBase text color for normal contentmc-text-mushroom-600
.mc-text-color-weakWeak emphasis text colormc-text-mushroom-400
.mc-text-color-disabledText color for disabled elementsmc-text-white-400
.mc-text-color-on-fill-disabledText color on filled disabled elementsmc-text-white-500

Inverted Text Colors

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

Brand Text Colors

Class NameDescriptionColor Token
.mc-text-color-brand-baseBrand text colormc-text-kangkong-700
.mc-text-color-brand-hoverBrand text on hovermc-text-kangkong-800
.mc-text-color-brand-pressedBrand text on pressedmc-text-kangkong-900

Success Text Colors

Class NameDescriptionColor Token
.mc-text-color-success-baseSuccess text colormc-text-kangkong-700
.mc-text-color-success-hoverSuccess text on hovermc-text-kangkong-800
.mc-text-color-success-pressedSuccess text on pressedmc-text-kangkong-900

Information Text Colors

Class NameDescriptionColor Token
.mc-text-color-information-baseInformation text colormc-text-blueberry-800
.mc-text-color-information-hoverInformation text on hovermc-text-blueberry-900
.mc-text-color-information-pressedInformation text on pressedmc-text-blueberry-950

Danger Text Colors

Class NameDescriptionColor Token
.mc-text-color-danger-baseDanger text colormc-text-tomato-700
.mc-text-color-danger-hoverDanger text on hovermc-text-tomato-800
.mc-text-color-danger-pressedDanger text on pressedmc-text-tomato-900

Pending Text Colors

Class NameDescriptionColor Token
.mc-text-color-pending-basePending text colormc-text-mango-800
.mc-text-color-pending-hoverPending text on hovermc-text-mango-900
.mc-text-color-pending-pressedPending text on pressedmc-text-mango-950

Caution Text Colors

Class NameDescriptionColor Token
.mc-text-color-caution-baseCaution text colormc-text-carrot-800
.mc-text-color-caution-hoverCaution text on hovermc-text-carrot-900
.mc-text-color-caution-pressedCaution text on pressedmc-text-carrot-950

Accent Text Colors

Class NameDescriptionColor Token
.mc-text-color-accent-baseAccent text colormc-text-wintermelon-700
.mc-text-color-accent-hoverAccent text on hovermc-text-wintermelon-800
.mc-text-color-accent-pressedAccent text on pressedmc-text-wintermelon-900

Special Text Colors

Class NameDescriptionColor Token
.mc-text-color-specialty-token-darkSpecialty dark token textmc-text-mushroom-950

Examples

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

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

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

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