Suspicious for shadcn/ui

Suspicious is a shadcn/ui theme built around a deep green primary color (#40692b) with deep green accents (#2b6935). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep green primary (#40692b) on a green-tinted background (#081005).

Color palette

TokenLightDark
Background
#ffffffwhite
#081005black
Foreground
#020401black
#fcfdfcwhite
Card
#ffffffwhite
#081005black
Card foreground
#020401black
#fcfdfcwhite
Popover
#ffffffwhite
#081005black
Popover foreground
#020401black
#fcfdfcwhite
Primary
#40692bdarkolivegreen
#40692bdarkolivegreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#5f692bdarkolivegreen
#5f692bdarkolivegreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e4e5dcgainsboro
#22231ablack
Muted foreground
#4d4d4ddarkslategray
#b3b3b3darkgray
Accent
#2b6935darkslategray
#2b6935darkslategray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#5e2208maroon
#d34c12chocolate
Destructive foreground
#f7bba1lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#40692bdarkolivegreen
#40692bdarkolivegreen

Contrast

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

Light mode
Text on background20.58:1AAA
Text on card20.58:1AAA
Primary button6.42:1AA
Secondary button5.93:1AA
Muted text6.66:1AA
Accent6.61:1AA
Destructive7.37:1AAA
Dark mode
Text on background18.96:1AAA
Text on card18.96:1AAA
Primary button6.42:1AA
Secondary button5.93:1AA
Muted text7.53:1AAA
Accent6.61:1AA
Destructive4.35:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.102 0.022 132.749);
  --muted: oklch(0.919 0.013 114.333);
  --muted-foreground: oklch(0.418 0 173.29);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.102 0.022 132.749);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.102 0.022 132.749);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.475 0.103 136.402);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.498 0.087 117.568);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.466 0.104 147.035);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.338 0.095 40.87);
  --destructive-foreground: oklch(0.84 0.078 44.258);
  --ring: oklch(0.475 0.103 136.402);
  --chart-1: oklch(0.475 0.103 136.402);
  --chart-2: oklch(0.498 0.087 117.568);
  --chart-3: oklch(0.466 0.104 147.035);
  --chart-4: oklch(0.534 0.094 117.61);
  --chart-5: oklch(0.48 0.109 136.54);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.16 0.027 134.152);
  --foreground: oklch(0.993 0.001 134.831);
  --muted: oklch(0.253 0.018 115.377);
  --muted-foreground: oklch(0.765 0 172.405);
  --popover: oklch(0.16 0.027 134.152);
  --popover-foreground: oklch(0.993 0.001 134.831);
  --card: oklch(0.16 0.027 134.152);
  --card-foreground: oklch(0.993 0.001 134.831);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.475 0.103 136.402);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.498 0.087 117.568);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.466 0.104 147.035);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.595 0.181 39.434);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.475 0.103 136.402);
  --chart-1: oklch(0.475 0.103 136.402);
  --chart-2: oklch(0.498 0.087 117.568);
  --chart-3: oklch(0.466 0.104 147.035);
  --chart-4: oklch(0.534 0.094 117.61);
  --chart-5: oklch(0.48 0.109 136.54);
}