Complex for shadcn/ui

Complex is a shadcn/ui theme built around a deep green primary color (#1b371f) with neutral gray accents (#cfd3d0). The light mode uses a neutral background (#f7fdf8). Dark mode keeps the deep green primary (#1b371f) on a green-tinted background (#070e08).

Color palette

TokenLightDark
Background
#f7fdf8mintcream
#070e08black
Foreground
#050f06black
#f9fbf9mintcream
Card
#f3fcf4honeydew
#09110ablack
Card foreground
#040c05black
#fcfdfcwhite
Popover
#f7fdf8mintcream
#070e08black
Popover foreground
#050f06black
#f9fbf9mintcream
Primary
#1b371fdarkslategray
#1b371fdarkslategray
Primary foreground
#add7b3silver
#add7b3silver
Secondary
#cfd3d0lightgrey
#2a3c2ddarkslategray
Secondary foreground
#363a36darkslategray
#c3d5c6lightgrey
Muted
#eceeecwhitesmoke
#111311black
Muted foreground
#575c57dimgray
#a3a8a4darkgray
Accent
#cfd3d0lightgrey
#2a3c2ddarkslategray
Accent foreground
#363a36darkslategray
#c3d5c6lightgrey
Destructive
#7f200bmaroon
#ee5f3ftomato
Destructive foreground
#faccc2pink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#1b371fdarkslategray
#1b371fdarkslategray

Contrast

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

Light mode
Text on background18.87:1AAA
Text on card18.88:1AAA
Primary button8.18:1AAA
Secondary button7.64:1AAA
Muted text5.86:1AA
Accent7.64:1AAA
Destructive6.85:1AA
Dark mode
Text on background18.82:1AAA
Text on card18.80:1AAA
Primary button8.18:1AAA
Secondary button7.68:1AAA
Muted text7.73:1AAA
Accent7.68:1AAA
Destructive6.34:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.009 149.569);
  --foreground: oklch(0.156 0.026 148.238);
  --muted: oklch(0.947 0.003 149.647);
  --muted-foreground: oklch(0.468 0.01 149.417);
  --popover: oklch(0.988 0.009 149.569);
  --popover-foreground: oklch(0.156 0.026 148.238);
  --card: oklch(0.982 0.014 149.509);
  --card-foreground: oklch(0.14 0.023 148.611);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.306 0.055 147.127);
  --primary-foreground: oklch(0.838 0.066 148.652);
  --secondary: oklch(0.863 0.006 149.599);
  --secondary-foreground: oklch(0.344 0.009 149.355);
  --accent: oklch(0.863 0.006 149.599);
  --accent-foreground: oklch(0.344 0.009 149.355);
  --destructive: oklch(0.397 0.133 33.676);
  --destructive-foreground: oklch(0.883 0.054 32.806);
  --ring: oklch(0.306 0.055 147.127);
  --chart-1: oklch(0.306 0.055 147.127);
  --chart-2: oklch(0.863 0.006 149.599);
  --chart-3: oklch(0.863 0.006 149.599);
  --chart-4: oklch(0.886 0.005 149.616);
  --chart-5: oklch(0.309 0.059 146.916);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.152 0.017 148.747);
  --foreground: oklch(0.986 0.004 149.636);
  --muted: oklch(0.183 0.004 149.396);
  --muted-foreground: oklch(0.727 0.009 149.531);
  --popover: oklch(0.152 0.017 148.747);
  --popover-foreground: oklch(0.986 0.004 149.636);
  --card: oklch(0.166 0.02 148.251);
  --card-foreground: oklch(0.993 0.002 149.66);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.306 0.055 147.127);
  --primary-foreground: oklch(0.838 0.066 148.652);
  --secondary: oklch(0.335 0.035 148.311);
  --secondary-foreground: oklch(0.855 0.028 149.274);
  --accent: oklch(0.335 0.035 148.311);
  --accent-foreground: oklch(0.855 0.028 149.274);
  --destructive: oklch(0.665 0.184 34.153);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.306 0.055 147.127);
  --chart-1: oklch(0.306 0.055 147.127);
  --chart-2: oklch(0.335 0.035 148.311);
  --chart-3: oklch(0.335 0.035 148.311);
  --chart-4: oklch(0.366 0.039 148.272);
  --chart-5: oklch(0.309 0.059 146.916);
}