Accusation for shadcn/ui

Accusation is a shadcn/ui theme built around a vivid deep green primary color (#02210c) with vivid deep purple accents (#210218). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep green primary (#02210c) on a neutral background (#010402).

Color palette

TokenLightDark
Background
#ffffffwhite
#010402black
Foreground
#020d06black
#ffffffwhite
Card
#ffffffwhite
#010402black
Card foreground
#020d06black
#ffffffwhite
Popover
#ffffffwhite
#010402black
Popover foreground
#020d06black
#ffffffwhite
Primary
#02210cblack
#02210cblack
Primary foreground
#10e052limegreen
#10e052limegreen
Secondary
#210218black
#210218black
Secondary foreground
#f462c6hotpink
#f462c6hotpink
Muted
#f4ebf1whitesmoke
#140b11black
Muted foreground
#4a3f47darkslategray
#c0b5bcsilver
Accent
#210218black
#210218black
Accent foreground
#f462c6hotpink
#f462c6hotpink
Destructive
#ad3a10firebrick
#d74814chocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#02210cblack
#02210cblack

Contrast

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

Light mode
Text on background19.75:1AAA
Text on card19.75:1AAA
Primary button9.59:1AAA
Secondary button6.80:1AA
Muted text8.62:1AAA
Accent6.80:1AA
Destructive6.21:1AA
Dark mode
Text on background20.60:1AAA
Text on card20.60:1AAA
Primary button9.59:1AAA
Secondary button6.80:1AA
Muted text9.74:1AAA
Accent6.80:1AA
Destructive4.36:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.143 0.026 155.725);
  --muted: oklch(0.95 0.012 336.805);
  --muted-foreground: oklch(0.383 0.019 337.519);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.143 0.026 155.725);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.143 0.026 155.725);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.22 0.055 150.805);
  --primary-foreground: oklch(0.791 0.235 146.577);
  --secondary: oklch(0.173 0.065 342.474);
  --secondary-foreground: oklch(0.711 0.209 341.99);
  --accent: oklch(0.173 0.065 342.474);
  --accent-foreground: oklch(0.711 0.209 341.99);
  --destructive: oklch(0.509 0.158 37.768);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.22 0.055 150.805);
  --chart-1: oklch(0.22 0.055 150.805);
  --chart-2: oklch(0.173 0.065 342.474);
  --chart-3: oklch(0.173 0.065 342.474);
  --chart-4: oklch(0.211 0.081 343.812);
  --chart-5: oklch(0.221 0.057 150.707);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.097 0.013 156.194);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.164 0.019 338.644);
  --muted-foreground: oklch(0.783 0.016 336.959);
  --popover: oklch(0.097 0.013 156.194);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.097 0.013 156.194);
  --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.22 0.055 150.805);
  --primary-foreground: oklch(0.791 0.235 146.577);
  --secondary: oklch(0.173 0.065 342.474);
  --secondary-foreground: oklch(0.711 0.209 341.99);
  --accent: oklch(0.173 0.065 342.474);
  --accent-foreground: oklch(0.711 0.209 341.99);
  --destructive: oklch(0.596 0.188 37.51);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.22 0.055 150.805);
  --chart-1: oklch(0.22 0.055 150.805);
  --chart-2: oklch(0.173 0.065 342.474);
  --chart-3: oklch(0.173 0.065 342.474);
  --chart-4: oklch(0.211 0.081 343.812);
  --chart-5: oklch(0.221 0.057 150.707);
}