Wicked for shadcn/ui

Wicked is a shadcn/ui theme built around a vivid deep blue primary color (#072d5f) with vivid deep green accents (#2d5f07). The light mode uses a neutral background (#f8fafc). Dark mode keeps the vivid deep blue primary (#072d5f) on a neutral background (#020203).

Color palette

TokenLightDark
Background
#f8fafcghostwhite
#020203black
Foreground
#02070dblack
#ffffffwhite
Card
#f4f7fbghostwhite
#040507black
Card foreground
#020509black
#ffffffwhite
Popover
#f4f7fbghostwhite
#040507black
Popover foreground
#020509black
#ffffffwhite
Primary
#072d5fmidnightblue
#072d5fmidnightblue
Primary foreground
#a0c6f8lightskyblue
#a0c6f8lightskyblue
Secondary
#5f072dmaroon
#5f072dmaroon
Secondary foreground
#f8a0c6lightpink
#f8a0c6lightpink
Muted
#eee7ealinen
#181114black
Muted foreground
#58464edarkslategray
#b9a7afdarkgray
Accent
#2d5f07darkgreen
#2d5f07darkgreen
Accent foreground
#c6f8a0palegoldenrod
#c6f8a0palegoldenrod
Destructive
#983d0bsaddlebrown
#ed5f12chocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#072d5fmidnightblue
#072d5fmidnightblue

Contrast

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

Light mode
Text on background19.26:1AAA
Text on card18.99:1AAA
Primary button7.68:1AAA
Secondary button6.95:1AA
Muted text7.18:1AAA
Accent6.26:1AA
Destructive7.01:1AAA
Dark mode
Text on background20.70:1AAA
Text on card20.41:1AAA
Primary button7.68:1AAA
Secondary button6.95:1AA
Muted text8.16:1AAA
Accent6.26:1AA
Destructive6.23:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.983 0.004 254.976);
  --foreground: oklch(0.124 0.019 245.599);
  --muted: oklch(0.934 0.009 348.999);
  --muted-foreground: oklch(0.416 0.026 350.417);
  --popover: oklch(0.975 0.006 254.987);
  --popover-foreground: oklch(0.109 0.016 244.703);
  --card: oklch(0.975 0.006 254.987);
  --card-foreground: oklch(0.109 0.016 244.703);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.305 0.099 257.347);
  --primary-foreground: oklch(0.817 0.082 255.316);
  --secondary: oklch(0.319 0.121 2.561);
  --secondary-foreground: oklch(0.804 0.115 352.437);
  --accent: oklch(0.435 0.125 136.037);
  --accent-foreground: oklch(0.925 0.126 132.44);
  --destructive: oklch(0.477 0.134 43.222);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.305 0.099 257.347);
  --chart-1: oklch(0.305 0.099 257.347);
  --chart-2: oklch(0.319 0.121 2.561);
  --chart-3: oklch(0.435 0.125 136.037);
  --chart-4: oklch(0.351 0.135 3.074);
  --chart-5: oklch(0.305 0.102 257.45);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.089 0.006 250.577);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.187 0.014 350.658);
  --muted-foreground: oklch(0.746 0.023 349.557);
  --popover: oklch(0.113 0.007 250.577);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.113 0.007 250.577);
  --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.305 0.099 257.347);
  --primary-foreground: oklch(0.817 0.082 255.316);
  --secondary: oklch(0.319 0.121 2.561);
  --secondary-foreground: oklch(0.804 0.115 352.437);
  --accent: oklch(0.435 0.125 136.037);
  --accent-foreground: oklch(0.925 0.126 132.44);
  --destructive: oklch(0.659 0.191 42.394);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.305 0.099 257.347);
  --chart-1: oklch(0.305 0.099 257.347);
  --chart-2: oklch(0.319 0.121 2.561);
  --chart-3: oklch(0.435 0.125 136.037);
  --chart-4: oklch(0.351 0.135 3.074);
  --chart-5: oklch(0.305 0.102 257.45);
}