Yellow for shadcn/ui

Yellow is a shadcn/ui theme built around a muted violet primary color (#b59bc5) with muted green accents (#abc59b). The light mode uses a neutral background (#fbf7fd). Dark mode keeps the muted violet primary (#b59bc5) on a violet-tinted background (#08050a).

Color palette

TokenLightDark
Background
#fbf7fdghostwhite
#08050ablack
Foreground
#0c0410black
#faf9fbghostwhite
Card
#fbf7fdghostwhite
#08050ablack
Card foreground
#0c0410black
#faf9fbghostwhite
Popover
#fbf7fdghostwhite
#08050ablack
Popover foreground
#0c0410black
#faf9fbghostwhite
Primary
#b59bc5darkgray
#b59bc5darkgray
Primary foreground
#18111dblack
#18111dblack
Secondary
#abc59bdarkgray
#abc59bdarkgray
Secondary foreground
#161d11black
#161d11black
Muted
#d8dcd6gainsboro
#262923darkslategray
Muted foreground
#525f49darkolivegreen
#a8b6a0darkgray
Accent
#abc59bdarkgray
#abc59bdarkgray
Accent foreground
#161d11black
#161d11black
Destructive
#7d1408maroon
#f24936tomato
Destructive foreground
#fbc2bclightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b59bc5darkgray
#b59bc5darkgray

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background18.99:1AAA
Text on card18.99:1AAA
Primary button7.45:1AAA
Secondary button9.15:1AAA
Muted text4.88:1AA
Accent9.15:1AAA
Destructive6.88:1AA
Dark mode
Text on background19.30:1AAA
Text on card19.30:1AAA
Primary button7.45:1AAA
Secondary button9.15:1AAA
Muted text6.91:1AA
Accent9.15:1AAA
Destructive3.63:1AA Large

CSS variables

Paste this into your globals.css to use Yellow in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.98 0.01 312.916);
  --foreground: oklch(0.131 0.031 313.111);
  --muted: oklch(0.889 0.009 133.057);
  --muted-foreground: oklch(0.468 0.038 133.582);
  --popover: oklch(0.98 0.01 312.916);
  --popover-foreground: oklch(0.131 0.031 313.111);
  --card: oklch(0.98 0.01 312.916);
  --card-foreground: oklch(0.131 0.031 313.111);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.727 0.065 312.381);
  --primary-foreground: oklch(0.193 0.026 312.056);
  --secondary: oklch(0.792 0.063 133.565);
  --secondary-foreground: oklch(0.219 0.025 133.855);
  --accent: oklch(0.792 0.063 133.565);
  --accent-foreground: oklch(0.219 0.025 133.855);
  --destructive: oklch(0.381 0.141 30.55);
  --destructive-foreground: oklch(0.863 0.066 25.794);
  --ring: oklch(0.727 0.065 312.381);
  --chart-1: oklch(0.727 0.065 312.381);
  --chart-2: oklch(0.792 0.063 133.565);
  --chart-3: oklch(0.792 0.063 133.565);
  --chart-4: oklch(0.812 0.057 133.488);
  --chart-5: oklch(0.724 0.072 312.307);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.016 314.118);
  --foreground: oklch(0.983 0.003 312.962);
  --muted: oklch(0.276 0.012 133.299);
  --muted-foreground: oklch(0.759 0.034 133.302);
  --popover: oklch(0.124 0.016 314.118);
  --popover-foreground: oklch(0.983 0.003 312.962);
  --card: oklch(0.124 0.016 314.118);
  --card-foreground: oklch(0.983 0.003 312.962);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.727 0.065 312.381);
  --primary-foreground: oklch(0.193 0.026 312.056);
  --secondary: oklch(0.792 0.063 133.565);
  --secondary-foreground: oklch(0.219 0.025 133.855);
  --accent: oklch(0.792 0.063 133.565);
  --accent-foreground: oklch(0.219 0.025 133.855);
  --destructive: oklch(0.645 0.209 30.057);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.727 0.065 312.381);
  --chart-1: oklch(0.727 0.065 312.381);
  --chart-2: oklch(0.792 0.063 133.565);
  --chart-3: oklch(0.792 0.063 133.565);
  --chart-4: oklch(0.812 0.057 133.488);
  --chart-5: oklch(0.724 0.072 312.307);
}