Wasp for shadcn/ui

Wasp is a shadcn/ui theme built around a green primary color (#c8e39c) with violet accents (#b79ce3). The light mode uses a neutral background (#fdfefb). Dark mode keeps the green primary (#c8e39c) on a green-tinted background (#090c04).

Color palette

TokenLightDark
Background
#fdfefbwhite
#090c04black
Foreground
#0e1306black
#ffffffwhite
Card
#fdfefbwhite
#090c04black
Card foreground
#0e1306black
#ffffffwhite
Popover
#fdfefbwhite
#090c04black
Popover foreground
#0e1306black
#ffffffwhite
Primary
#c8e39cpalegoldenrod
#c8e39cpalegoldenrod
Primary foreground
#2b3c11darkgreen
#2b3c11darkgreen
Secondary
#b79ce3plum
#b79ce3plum
Secondary foreground
#21113cmidnightblue
#21113cmidnightblue
Muted
#e9e3f2lavender
#130d1cblack
Muted foreground
#554e5fdimgray
#a6a0b1darkgray
Accent
#b79ce3plum
#b79ce3plum
Accent foreground
#21113cmidnightblue
#21113cmidnightblue
Destructive
#ae180afirebrick
#f23321orangered
Destructive foreground
#feedeclinen
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c8e39cpalegoldenrod
#c8e39cpalegoldenrod

Contrast

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

Light mode
Text on background18.55:1AAA
Text on card18.55:1AAA
Primary button8.48:1AAA
Secondary button7.30:1AAA
Muted text6.32:1AA
Accent7.30:1AAA
Destructive6.34:1AA
Dark mode
Text on background19.74:1AAA
Text on card19.74:1AAA
Primary button8.48:1AAA
Secondary button7.30:1AAA
Muted text7.53:1AAA
Accent7.30:1AAA
Destructive3.98:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 123.683);
  --foreground: oklch(0.178 0.027 125.591);
  --muted: oklch(0.925 0.022 303.292);
  --muted-foreground: oklch(0.437 0.029 302.646);
  --popover: oklch(0.994 0.003 123.683);
  --popover-foreground: oklch(0.178 0.027 125.591);
  --card: oklch(0.994 0.003 123.683);
  --card-foreground: oklch(0.178 0.027 125.591);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.878 0.098 125.397);
  --primary-foreground: oklch(0.33 0.069 127.579);
  --secondary: oklch(0.741 0.105 301.494);
  --secondary-foreground: oklch(0.227 0.079 297.378);
  --accent: oklch(0.741 0.105 301.494);
  --accent-foreground: oklch(0.227 0.079 297.378);
  --destructive: oklch(0.48 0.184 30.093);
  --destructive-foreground: oklch(0.96 0.018 23.774);
  --ring: oklch(0.878 0.098 125.397);
  --chart-1: oklch(0.878 0.098 125.397);
  --chart-2: oklch(0.741 0.105 301.494);
  --chart-3: oklch(0.741 0.105 301.494);
  --chart-4: oklch(0.773 0.092 301.857);
  --chart-5: oklch(0.883 0.103 125.486);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.146 0.02 123.274);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.174 0.032 300.74);
  --muted-foreground: oklch(0.716 0.026 303.104);
  --popover: oklch(0.146 0.02 123.274);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.146 0.02 123.274);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.878 0.098 125.397);
  --primary-foreground: oklch(0.33 0.069 127.579);
  --secondary: oklch(0.741 0.105 301.494);
  --secondary-foreground: oklch(0.227 0.079 297.378);
  --accent: oklch(0.741 0.105 301.494);
  --accent-foreground: oklch(0.227 0.079 297.378);
  --destructive: oklch(0.625 0.228 29.96);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.878 0.098 125.397);
  --chart-1: oklch(0.878 0.098 125.397);
  --chart-2: oklch(0.741 0.105 301.494);
  --chart-3: oklch(0.741 0.105 301.494);
  --chart-4: oklch(0.773 0.092 301.857);
  --chart-5: oklch(0.883 0.103 125.486);
}