Wasp for shadcn/ui

Wasp is a shadcn/ui theme built around a vivid deep green primary color (#495204) with vivid deep purple accents (#520449). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep green primary (#495204) on a neutral background (#030401).

Color palette

TokenLightDark
Background
#ffffffwhite
#030401black
Foreground
#000000black
#fbfbf9snow
Card
#fcfcfcsnow
#070703black
Card foreground
#000000black
#fdfdfcwhite
Popover
#fcfcfcsnow
#070703black
Popover foreground
#000000black
#fdfdfcwhite
Primary
#495204darkolivegreen
#495204darkolivegreen
Primary foreground
#ddf42fgreenyellow
#ddf42fgreenyellow
Secondary
#044952darkslategray
#044952darkslategray
Secondary foreground
#2fddf4turquoise
#2fddf4turquoise
Muted
#dce8e9gainsboro
#162123black
Muted foreground
#494f50darkslategray
#afb5b6darkgray
Accent
#520449indigo
#520449indigo
Accent foreground
#f990edviolet
#f990edviolet
Destructive
#cd2c04firebrick
#e13105orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#495204darkolivegreen
#495204darkolivegreen

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button6.80:1AA
Secondary button6.11:1AA
Muted text6.66:1AA
Accent6.92:1AA
Destructive5.30:1AA
Dark mode
Text on background19.84:1AAA
Text on card19.79:1AAA
Primary button6.80:1AA
Secondary button6.11:1AA
Muted text7.93:1AAA
Accent6.92:1AA
Destructive4.53:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.923 0.012 206.365);
  --muted-foreground: oklch(0.422 0.007 206.348);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.417 0.094 116.939);
  --primary-foreground: oklch(0.919 0.201 116.656);
  --secondary: oklch(0.373 0.063 209.335);
  --secondary-foreground: oklch(0.825 0.134 208.872);
  --accent: oklch(0.306 0.131 334.101);
  --accent-foreground: oklch(0.794 0.17 331.422);
  --destructive: oklch(0.552 0.201 33.156);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.417 0.094 116.939);
  --chart-1: oklch(0.417 0.094 116.939);
  --chart-2: oklch(0.373 0.063 209.335);
  --chart-3: oklch(0.306 0.131 334.101);
  --chart-4: oklch(0.416 0.07 209.615);
  --chart-5: oklch(0.422 0.096 117.04);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.101 0.012 112.795);
  --foreground: oklch(0.987 0.002 111.823);
  --muted: oklch(0.238 0.016 206.273);
  --muted-foreground: oklch(0.769 0.006 206.393);
  --popover: oklch(0.128 0.015 112.795);
  --popover-foreground: oklch(0.993 0.001 111.801);
  --card: oklch(0.128 0.015 112.795);
  --card-foreground: oklch(0.993 0.001 111.801);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.417 0.094 116.939);
  --primary-foreground: oklch(0.919 0.201 116.656);
  --secondary: oklch(0.373 0.063 209.335);
  --secondary-foreground: oklch(0.825 0.134 208.872);
  --accent: oklch(0.306 0.131 334.101);
  --accent-foreground: oklch(0.794 0.17 331.422);
  --destructive: oklch(0.591 0.216 33.033);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.417 0.094 116.939);
  --chart-1: oklch(0.417 0.094 116.939);
  --chart-2: oklch(0.373 0.063 209.335);
  --chart-3: oklch(0.306 0.131 334.101);
  --chart-4: oklch(0.416 0.07 209.615);
  --chart-5: oklch(0.422 0.096 117.04);
}