Suspect for shadcn/ui

Suspect is a shadcn/ui theme built around a deep green primary color (#182009) with deep green accents (#0c2009). The light mode uses a neutral background (#fbfdf7). Dark mode keeps the deep green primary (#182009) on a neutral background (#060703).

Color palette

TokenLightDark
Background
#fbfdf7snow
#060703black
Foreground
#0f1405black
#fdfdfcwhite
Card
#f8fbf3whitesmoke
#090b04black
Card foreground
#0c1004black
#ffffffwhite
Popover
#fbfdf7snow
#060703black
Popover foreground
#0f1405black
#fdfdfcwhite
Primary
#182009black
#182009black
Primary foreground
#8dc035yellowgreen
#8dc035yellowgreen
Secondary
#201d09black
#201d09black
Secondary foreground
#c0ae35goldenrod
#c0ae35goldenrod
Muted
#f3f2eclinen
#13120cblack
Muted foreground
#6c6a5adimgray
#a5a293darkgray
Accent
#0c2009black
#0c2009black
Accent foreground
#47c035limegreen
#47c035limegreen
Destructive
#6d0c08maroon
#da1710crimson
Destructive foreground
#f9b1aelightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#182009black
#182009black

Contrast

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

Light mode
Text on background18.19:1AAA
Text on card18.44:1AAA
Primary button7.78:1AAA
Secondary button7.53:1AAA
Muted text4.86:1AA
Accent7.22:1AAA
Destructive6.99:1AA
Dark mode
Text on background19.82:1AAA
Text on card19.78:1AAA
Primary button7.78:1AAA
Secondary button7.53:1AAA
Muted text7.33:1AAA
Accent7.22:1AAA
Destructive5.09:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.007 123.039);
  --foreground: oklch(0.181 0.03 125.073);
  --muted: oklch(0.96 0.007 99.455);
  --muted-foreground: oklch(0.522 0.024 99.963);
  --popover: oklch(0.99 0.007 123.039);
  --popover-foreground: oklch(0.181 0.03 125.073);
  --card: oklch(0.985 0.011 123.095);
  --card-foreground: oklch(0.164 0.026 124.132);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.229 0.042 126.241);
  --primary-foreground: oklch(0.746 0.173 127.853);
  --secondary: oklch(0.228 0.034 100.702);
  --secondary-foreground: oklch(0.744 0.137 100.264);
  --accent: oklch(0.22 0.05 141.048);
  --accent-foreground: oklch(0.714 0.206 141.205);
  --destructive: oklch(0.344 0.13 28.715);
  --destructive-foreground: oklch(0.827 0.085 21.27);
  --ring: oklch(0.229 0.042 126.241);
  --chart-1: oklch(0.229 0.042 126.241);
  --chart-2: oklch(0.228 0.034 100.702);
  --chart-3: oklch(0.22 0.05 141.048);
  --chart-4: oklch(0.274 0.044 100.638);
  --chart-5: oklch(0.23 0.044 126.38);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.126 0.016 122.487);
  --foreground: oklch(0.994 0.002 122.956);
  --muted: oklch(0.18 0.011 100.15);
  --muted-foreground: oklch(0.71 0.022 99.78);
  --popover: oklch(0.126 0.016 122.487);
  --popover-foreground: oklch(0.994 0.002 122.956);
  --card: oklch(0.144 0.018 122.609);
  --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.229 0.042 126.241);
  --primary-foreground: oklch(0.746 0.173 127.853);
  --secondary: oklch(0.228 0.034 100.702);
  --secondary-foreground: oklch(0.744 0.137 100.264);
  --accent: oklch(0.22 0.05 141.048);
  --accent-foreground: oklch(0.714 0.206 141.205);
  --destructive: oklch(0.565 0.222 29.11);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.229 0.042 126.241);
  --chart-1: oklch(0.229 0.042 126.241);
  --chart-2: oklch(0.228 0.034 100.702);
  --chart-3: oklch(0.22 0.05 141.048);
  --chart-4: oklch(0.274 0.044 100.638);
  --chart-5: oklch(0.23 0.044 126.38);
}