Color System
The color palette is extracted from Figma and maintained as SCSS variables. Every color has 11 shades (25–900) with the main variant at shade 400.
Brand Colors
Primary Purple
The brand primary color used for buttons, links, active states, and brand emphasis.
Purple 25
$purple-25#faf8fcPurple 50
$purple-50#f4f0f9Purple 100
$purple-100#e8e0f2Purple 200
$purple-200#d1c1e5Purple 300
$purple-300#b99fd7Purple 400
$purple-400#9370c4Purple 500
$purple-500#7b52b3Purple 600
$purple-600#6a3fa6Purple 700
$purple-700#5a3193Purple 800
$purple-800#492b7cPurple 900
$purple-900#3d2467Yellow (Secondary)
Accent color for highlights and callouts.
Yellow 400
$yellow-400#f5a623Yellow 600
$yellow-600#c4840eYellow 800
$yellow-800#8a5e0aFunctional Colors
Grey Scale
Used for text, borders, backgrounds, and neutral UI elements.
Grey 25
$grey-25#fdfdfdGrey 50
$grey-50#fafafaGrey 100
$grey-100#f5f5f5Grey 200
$grey-200#eeeeeeGrey 300
$grey-300#e0e0e0Grey 400
$grey-400#bdbdbdGrey 500
$grey-500#9e9e9eGrey 600
$grey-600#757575Grey 700
$grey-700#616161Grey 800
$grey-800#424242Grey 900
$grey-900#212121Status Colors
| Color | Usage | Variable |
|---|---|---|
| Red | Error, destructive actions | $red-400 to $red-900 |
| Green | Success, positive states | $green-400 to $green-900 |
| Blue | Information, links | $blue-400 to $blue-900 |
| Orange | Warning, attention | $orange-400 to $orange-900 |
Semantic Aliases
For convenience, semantic aliases map colors to their intended use:
scss
// Brand
$brand-primary: $purple-800;
$brand-primary-hover: $purple-700;
$brand-primary-focused: $purple-600;
$brand-primary-active: $purple-900;
// Text
$color-text-primary: $grey-900;
$color-text-secondary: $grey-600;
$color-text-disabled: $grey-400;
// Backgrounds
$color-bg-primary: $base-white;
$color-bg-secondary: $grey-50;
$color-bg-disabled: $grey-100;Usage
scss
@use '@yellowcard/b2b-design-system/scss/colors' as *;
.my-card {
background: $grey-50;
border: 1px solid $grey-200;
color: $grey-900;
&:hover {
border-color: $purple-400;
}
}See SCSS Usage for full import instructions.