Wicked for shadcn/ui

Wicked is a shadcn/ui theme built around a deep green primary color (#1e5f1b) with deep green accents (#1b5f3a). The light mode uses a neutral background (#f7fdf7). Dark mode keeps the deep green primary (#1e5f1b) on a green-tinted background (#051004).

Color palette

TokenLightDark
Background
#f7fdf7mintcream
#051004black
Foreground
#000000black
#ffffffwhite
Card
#f3fcf2honeydew
#061405black
Card foreground
#000000black
#ffffffwhite
Popover
#f3fcf2honeydew
#061405black
Popover foreground
#000000black
#ffffffwhite
Primary
#1e5f1bdarkgreen
#1e5f1bdarkgreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#415f1bdarkolivegreen
#415f1bdarkolivegreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e2ecd4gainsboro
#202b13black
Muted foreground
#40413edarkslategray
#bfc1besilver
Accent
#1b5f3adarkslategray
#1b5f3adarkslategray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#882b06saddlebrown
#f45b1fchocolate
Destructive foreground
#fcd4c5peachpuff
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1e5f1bdarkgreen
#1e5f1bdarkgreen

Contrast

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

Light mode
Text on background20.36:1AAA
Text on card20.05:1AAA
Primary button7.70:1AAA
Secondary button7.26:1AAA
Muted text8.42:1AAA
Accent7.60:1AAA
Destructive6.38:1AA
Dark mode
Text on background19.39:1AAA
Text on card18.89:1AAA
Primary button7.70:1AAA
Secondary button7.26:1AAA
Muted text8.22:1AAA
Accent7.60:1AAA
Destructive6.39:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.011 144.065);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.93 0.034 126.899);
  --muted-foreground: oklch(0.373 0.005 126.585);
  --popover: oklch(0.982 0.016 144.032);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.982 0.016 144.032);
  --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.43 0.121 142.42);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.448 0.102 130.477);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.434 0.092 155.041);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.427 0.134 38.281);
  --destructive-foreground: oklch(0.901 0.05 42.731);
  --ring: oklch(0.43 0.121 142.42);
  --chart-1: oklch(0.43 0.121 142.42);
  --chart-2: oklch(0.448 0.102 130.477);
  --chart-3: oklch(0.434 0.092 155.041);
  --chart-4: oklch(0.486 0.112 130.564);
  --chart-5: oklch(0.435 0.125 142.386);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.157 0.032 142.437);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.27 0.044 128.821);
  --muted-foreground: oklch(0.808 0.004 126.488);
  --popover: oklch(0.174 0.037 142.495);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.174 0.037 142.495);
  --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.43 0.121 142.42);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.448 0.102 130.477);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.434 0.092 155.041);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.667 0.199 39.061);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.43 0.121 142.42);
  --chart-1: oklch(0.43 0.121 142.42);
  --chart-2: oklch(0.448 0.102 130.477);
  --chart-3: oklch(0.434 0.092 155.041);
  --chart-4: oklch(0.486 0.112 130.564);
  --chart-5: oklch(0.435 0.125 142.386);
}