Skip to content

Color Tokens

All colors are available as SCSS variables. Import them with:

scss
@use '@yellowcard/b2b-design-system/scss/colors' as *;

Base Colors

White$base-white#ffffff
Black$base-black#000000

Grey Scale

Grey 25$grey-25#fdfdfd
Grey 50$grey-50#fafafa
Grey 100$grey-100#f5f5f5
Grey 200$grey-200#eeeeee
Grey 300$grey-300#e0e0e0
Grey 400$grey-400#bdbdbd
Grey 500$grey-500#9e9e9e
Grey 600$grey-600#757575
Grey 700$grey-700#616161
Grey 800$grey-800#424242
Grey 900$grey-900#212121

Purple

Purple 25$purple-25#faf8fc
Purple 50$purple-50#f4f0f9
Purple 100$purple-100#e8e0f2
Purple 200$purple-200#d1c1e5
Purple 300$purple-300#b99fd7
Purple 400$purple-400#9370c4
Purple 500$purple-500#7b52b3
Purple 600$purple-600#6a3fa6
Purple 700$purple-700#5a3193
Purple 800$purple-800#492b7c
Purple 900$purple-900#3d2467

Yellow

Yellow 25$yellow-25#fffdf6
Yellow 50$yellow-50#fff9e6
Yellow 100$yellow-100#fff0c2
Yellow 200$yellow-200#ffe08a
Yellow 300$yellow-300#ffcf4d
Yellow 400$yellow-400#f5a623
Yellow 500$yellow-500#e09000
Yellow 600$yellow-600#c4840e
Yellow 700$yellow-700#a06c0a
Yellow 800$yellow-800#8a5e0a
Yellow 900$yellow-900#704d0a

Red (Error / Destructive)

Red 25$red-25#fef8f7
Red 50$red-50#fdeeed
Red 100$red-100#fbd5d3
Red 400$red-400#e85650
Red 600$red-600#c4302a
Red 800$red-800#8b1f1a
Red 900$red-900#6e1916

Green (Success)

Green 25$green-25#f5fcf8
Green 50$green-50#e8f8ef
Green 100$green-100#c8edda
Green 400$green-400#3bb273
Green 600$green-600#238c52
Green 800$green-800#16613a
Green 900$green-900#114d2e

Blue (Information)

Blue 25$blue-25#f6f9fe
Blue 50$blue-50#ebf2fd
Blue 100$blue-100#cfe0fa
Blue 400$blue-400#4a90d9
Blue 600$blue-600#2e6fb3
Blue 800$blue-800#1e4d7e
Blue 900$blue-900#183d64

Orange (Warning)

Orange 25$orange-25#fefaf6
Orange 50$orange-50#fdf3ea
Orange 100$orange-100#fae2ca
Orange 400$orange-400#e8863e
Orange 600$orange-600#c46420
Orange 800$orange-800#8b4516

Teal

Teal 25$teal-25#f4fcfc
Teal 50$teal-50#e6f7f8
Teal 400$teal-400#35b0b5
Teal 600$teal-600#208a8f
Teal 800$teal-800#156063

Semantic Aliases

Use semantic aliases for intent-driven styling:

scss
// Brand
$brand-primary: $purple-800;
$brand-primary-hover: $purple-700;
$brand-primary-active: $purple-900;

// Text hierarchy
$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;

// Borders
$color-border-default: $grey-200;
$color-border-strong: $grey-300;
$color-border-focus: $purple-400;