Choco Chic Cockroach for shadcn/ui

Choco Chic Cockroach is a shadcn/ui theme built around a deep green primary color (#2e5e2e) with vivid indigo accents (#32129b). The light mode uses a neutral background (#ffffff). Dark mode switches to a vivid red primary (#9b3212) on a neutral background (#030202).

Color palette

TokenLightDark
Background
#ffffffwhite
#030202black
Foreground
#0c0503black
#ffffffwhite
Card
#ffffffwhite
#030202black
Card foreground
#0c0503black
#ffffffwhite
Popover
#ffffffwhite
#030202black
Popover foreground
#0c0503black
#ffffffwhite
Primary
#2e5e2edarkslategray
#9b3212saddlebrown
Primary foreground
#fce9e4mistyrose
#fce9e4mistyrose
Secondary
#129b32forestgreen
#129b32forestgreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#dfece2gainsboro
#132016black
Muted foreground
#3f5544darkslategray
#aac0afdarkgray
Accent
#32129bindigo
#32129bindigo
Accent foreground
#e9e4fclavender
#e9e4fclavender
Destructive
#5d2809maroon
#ec7936coral
Destructive foreground
#f6c1a2navajowhite
#000000black
Border
#e9e8e7linen
#222120black
Input
#e9e8e7linen
#222120black
Ring
#9b3212saddlebrown
#9b3212saddlebrown

Contrast

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

Light mode
Text on background20.21:1AAA
Text on card20.21:1AAA
Primary button6.54:1AA
Secondary button3.63:1AA Large
Muted text6.64:1AA
Accent9.98:1AAA
Destructive7.37:1AAA
Dark mode
Text on background20.70:1AAA
Text on card20.70:1AAA
Primary button6.25:1AA
Secondary button3.63:1AA Large
Muted text8.71:1AAA
Accent9.98:1AAA
Destructive7.37:1AAA

CSS variables

Paste this into your globals.css to use Choco Chic Cockroach in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.127 0.017 45.274);
  --muted: oklch(0.931 0.02 152.894);
  --muted-foreground: oklch(0.426 0.039 151.628);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.127 0.017 45.274);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.127 0.017 45.274);
  --border: oklch(0.931 0.001 37.736);
  --input: oklch(0.931 0.001 37.736);
  --primary: oklch(0.434 0.092 143.697);
  --primary-foreground: oklch(0.948 0.022 37.649);
  --secondary: oklch(0.602 0.18 145.629);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.35 0.195 279.957);
  --accent-foreground: oklch(0.929 0.033 296.438);
  --destructive: oklch(0.346 0.088 46.202);
  --destructive-foreground: oklch(0.85 0.075 51.458);
  --ring: oklch(0.47 0.146 36.341);
  --chart-1: oklch(0.434 0.092 143.697);
  --chart-2: oklch(0.602 0.18 145.629);
  --chart-3: oklch(0.35 0.195 279.957);
  --chart-4: oklch(0.641 0.193 145.567);
  --chart-5: oklch(0.438 0.099 143.577);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.09 0.007 42.054);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.228 0.027 151.097);
  --muted-foreground: oklch(0.787 0.034 152.515);
  --popover: oklch(0.09 0.007 42.054);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.09 0.007 42.054);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.248 0.002 37.695);
  --input: oklch(0.248 0.002 37.695);
  --primary: oklch(0.47 0.146 36.341);
  --primary-foreground: oklch(0.948 0.022 37.649);
  --secondary: oklch(0.602 0.18 145.629);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.35 0.195 279.957);
  --accent-foreground: oklch(0.929 0.033 296.438);
  --destructive: oklch(0.698 0.162 47.581);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.47 0.146 36.341);
  --chart-1: oklch(0.47 0.146 36.341);
  --chart-2: oklch(0.602 0.18 145.629);
  --chart-3: oklch(0.35 0.195 279.957);
  --chart-4: oklch(0.641 0.193 145.567);
  --chart-5: oklch(0.472 0.15 36.085);
}