Skip to content

Background Colors

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

Usage

Base Background Colors

Class NameDescriptionColor Token
.mc-background-colorPrimary background colormc-bg-white-50
.mc-background-color-defaultDefault background colormc-bg-mushroom-200
.mc-background-color-surfaceSurface background colormc-bg-mushroom-50
.mc-background-color-surface-adaptiveAdaptive surface background with opacitymc-bg-mushroom-950/[0.05]
.mc-background-color-baseBase background colormc-bg-mushroom-100

Interactive States

Class NameDescriptionColor Token
.mc-background-color-hoverBackground color on hover statemc-bg-mushroom-950/[0.08]
.mc-background-color-pressedBackground color on pressed statemc-bg-mushroom-950/[0.12]
.mc-background-color-disabledBackground color for disabled elementsmc-bg-white-100

Inverted Colors

Class NameDescriptionColor Token
.mc-background-color-invertedInverted background colormc-bg-mushroom-950
.mc-background-color-inverted-hoverInverted background on hovermc-bg-mushroom-900
.mc-background-color-inverted-pressedInverted background on pressedmc-bg-mushroom-800

Active States

Class NameDescriptionColor Token
.mc-background-color-single-activeBackground for single active itemsmc-bg-kangkong-100
.mc-background-color-multiple-activeBackground for multiple active itemsmc-bg-kangkong-50

Brand Colors

Class NameDescriptionColor Token
.mc-background-color-brand-baseBrand background colormc-bg-kangkong-700
.mc-background-color-brand-hoverBrand background on hovermc-bg-kangkong-800
.mc-background-color-brand-pressedBrand background on pressedmc-bg-kangkong-900
.mc-background-color-brand-weakSubtle brand backgroundmc-bg-kangkong-100
.mc-background-color-brand-weak-hoverSubtle brand background on hovermc-bg-kangkong-200
.mc-background-color-brand-weak-pressedSubtle brand background on pressedmc-bg-kangkong-300

Success Colors

Class NameDescriptionColor Token
.mc-background-color-success-baseSuccess background colormc-bg-kangkong-600
.mc-background-color-success-hoverSuccess background on hovermc-bg-kangkong-700
.mc-background-color-success-pressedSuccess background on pressedmc-bg-kangkong-800
.mc-background-color-success-weakSubtle success backgroundmc-bg-kangkong-100
.mc-background-color-success-weak-hoverSubtle success background on hovermc-bg-kangkong-200
.mc-background-color-success-weak-pressedSubtle success background on pressedmc-bg-kangkong-300

Information Colors

Class NameDescriptionColor Token
.mc-background-color-information-baseInformation background colormc-bg-blueberry-600
.mc-background-color-information-hoverInformation background on hovermc-bg-blueberry-700
.mc-background-color-information-pressedInformation background on pressedmc-bg-blueberry-800
.mc-background-color-information-weakSubtle information backgroundmc-bg-blueberry-100
.mc-background-color-information-weak-hoverSubtle information background on hovermc-bg-blueberry-200
.mc-background-color-information-weak-pressedSubtle information background on pressedmc-bg-blueberry-300

Danger Colors

Class NameDescriptionColor Token
.mc-background-color-danger-baseDanger background colormc-bg-tomato-600
.mc-background-color-danger-hoverDanger background on hovermc-bg-tomato-700
.mc-background-color-danger-pressedDanger background on pressedmc-bg-tomato-800
.mc-background-color-danger-weakSubtle danger backgroundmc-bg-tomato-100
.mc-background-color-danger-weak-hoverSubtle danger background on hovermc-bg-tomato-200
.mc-background-color-danger-weak-pressedSubtle danger background on pressedmc-bg-tomato-300

Pending Colors

Class NameDescriptionColor Token
.mc-background-color-pending-basePending background colormc-bg-mango-500
.mc-background-color-pending-hoverPending background on hovermc-bg-mango-600
.mc-background-color-pending-pressedPending background on pressedmc-bg-mango-700
.mc-background-color-pending-weakSubtle pending backgroundmc-bg-mango-100
.mc-background-color-pending-weak-hoverSubtle pending background on hovermc-bg-mango-200
.mc-background-color-pending-weak-pressedSubtle pending background on pressedmc-bg-mango-300

Caution Colors

Class NameDescriptionColor Token
.mc-background-color-caution-baseCaution background colormc-bg-carrot-500
.mc-background-color-caution-hoverCaution background on hovermc-bg-carrot-600
.mc-background-color-caution-pressedCaution background on pressedmc-bg-carrot-700
.mc-background-color-caution-weakSubtle caution backgroundmc-bg-carrot-100
.mc-background-color-caution-weak-hoverSubtle caution background on hovermc-bg-carrot-200
.mc-background-color-caution-weak-pressedSubtle caution background on pressedmc-bg-carrot-300

Accent Colors

Class NameDescriptionColor Token
.mc-background-color-accent-baseAccent background colormc-bg-wintermelon-600
.mc-background-color-accent-hoverAccent background on hovermc-bg-wintermelon-700
.mc-background-color-accent-pressedAccent background on pressedmc-bg-wintermelon-800
.mc-background-color-accent-weakSubtle accent backgroundmc-bg-wintermelon-100
.mc-background-color-accent-weak-hoverSubtle accent background on hovermc-bg-wintermelon-200
.mc-background-color-accent-weak-pressedSubtle accent background on pressedmc-bg-wintermelon-300

Switch Colors

Class NameDescriptionColor Token
.mc-switch-background-defaultSwitch background default colormc-bg-mushroom-200
.mc-switch-background-hoverSwitch background on hovermc-bg-mushroom-300
.mc-switch-background-pressedSwitch background on pressedmc-bg-mushroom-400

Examples

html
<!-- Basic usage -->
<div class="mc-background-color">Primary background</div>
<div class="mc-background-color-surface">Surface background</div>

<!-- Interactive states -->
<button class="mc-background-color-brand-base hover:mc-background-color-brand-hover">Brand button</button>

<!-- Status colors -->
<div class="mc-background-color-success-weak">Success message</div>
<div class="mc-background-color-danger-weak">Error message</div>
<div class="mc-background-color-information-weak">Info message</div>