Unfair Wasabi Peanut for shadcn/ui

Unfair Wasabi Peanut is a shadcn/ui theme built around a muted green primary color (#b5c79e) with muted violet accents (#b09ec7). The light mode uses a neutral background (#fafdf6). Dark mode keeps the muted green primary (#b5c79e) on a green-tinted background (#0b1004).

Color palette

TokenLightDark
Background
#fafdf6mintcream
#0b1004black
Foreground
#0b1004black
#fafbf9snow
Card
#f8fdf2ivory
#0d1406black
Card foreground
#080c03black
#fdfdfcwhite
Popover
#fafdf6mintcream
#0b1004black
Popover foreground
#0b1004black
#fafbf9snow
Primary
#b5c79edarkgray
#b5c79edarkgray
Primary foreground
#1a2013black
#1a2013black
Secondary
#b09ec7darkgray
#b09ec7darkgray
Secondary foreground
#191320black
#191320black
Muted
#efedf2whitesmoke
#0f0d12black
Muted foreground
#4f4e50darkslategray
#b0afb1darkgray
Accent
#b09ec7darkgray
#b09ec7darkgray
Accent foreground
#191320black
#191320black
Destructive
#db460aorangered
#f6713ctomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e6e7e4gainsboro
#1c1d1bblack
Input
#e6e7e4gainsboro
#1c1d1bblack
Ring
#b5c79edarkgray
#b5c79edarkgray

Contrast

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

Light mode
Text on background18.81:1AAA
Text on card19.04:1AAA
Primary button9.23:1AAA
Secondary button7.41:1AAA
Muted text7.12:1AAA
Accent7.41:1AAA
Destructive4.29:1AA Large
Dark mode
Text on background18.56:1AAA
Text on card18.42:1AAA
Primary button9.23:1AAA
Secondary button7.41:1AAA
Muted text8.86:1AAA
Accent7.41:1AAA
Destructive7.32:1AAA

CSS variables

Paste this into your globals.css to use Unfair Wasabi Peanut in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.01 126.556);
  --foreground: oklch(0.164 0.028 127.131);
  --muted: oklch(0.949 0.008 306.324);
  --muted-foreground: oklch(0.426 0.003 306.347);
  --popover: oklch(0.991 0.01 126.556);
  --popover-foreground: oklch(0.164 0.028 127.131);
  --card: oklch(0.986 0.015 126.621);
  --card-foreground: oklch(0.147 0.024 125.741);
  --border: oklch(0.925 0.003 126.469);
  --input: oklch(0.925 0.003 126.469);
  --primary: oklch(0.805 0.06 127.419);
  --primary-foreground: oklch(0.234 0.027 128.009);
  --secondary: oklch(0.729 0.062 305.335);
  --secondary-foreground: oklch(0.2 0.028 304.571);
  --accent: oklch(0.729 0.062 305.335);
  --accent-foreground: oklch(0.2 0.028 304.571);
  --destructive: oklch(0.601 0.195 37.393);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.805 0.06 127.419);
  --chart-1: oklch(0.805 0.06 127.419);
  --chart-2: oklch(0.729 0.062 305.335);
  --chart-3: oklch(0.729 0.062 305.335);
  --chart-4: oklch(0.757 0.056 305.491);
  --chart-5: oklch(0.81 0.066 127.525);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.163 0.026 127.099);
  --foreground: oklch(0.987 0.003 126.469);
  --muted: oklch(0.163 0.012 305.479);
  --muted-foreground: oklch(0.756 0.002 306.388);
  --popover: oklch(0.163 0.026 127.099);
  --popover-foreground: oklch(0.987 0.003 126.469);
  --card: oklch(0.179 0.03 128.135);
  --card-foreground: oklch(0.993 0.002 126.449);
  --border: oklch(0.23 0.005 126.682);
  --input: oklch(0.23 0.005 126.682);
  --primary: oklch(0.805 0.06 127.419);
  --primary-foreground: oklch(0.234 0.027 128.009);
  --secondary: oklch(0.729 0.062 305.335);
  --secondary-foreground: oklch(0.2 0.028 304.571);
  --accent: oklch(0.729 0.062 305.335);
  --accent-foreground: oklch(0.2 0.028 304.571);
  --destructive: oklch(0.7 0.177 40.83);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.805 0.06 127.419);
  --chart-1: oklch(0.805 0.06 127.419);
  --chart-2: oklch(0.729 0.062 305.335);
  --chart-3: oklch(0.729 0.062 305.335);
  --chart-4: oklch(0.757 0.056 305.491);
  --chart-5: oklch(0.81 0.066 127.525);
}