Negative Dark Olive for shadcn/ui

Negative Dark Olive is a shadcn/ui theme built around a vivid deep green primary color (#394205) with muted light green accents (#d0d5b4). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep green primary (#394205) on a neutral background (#070802).

Color palette

TokenLightDark
Background
#ffffffwhite
#070802black
Foreground
#040401black
#f8f9f6whitesmoke
Card
#fcfcfcsnow
#0a0c04black
Card foreground
#000000black
#fbfbf9snow
Popover
#ffffffwhite
#070802black
Popover foreground
#040401black
#f8f9f6whitesmoke
Primary
#394205darkolivegreen
#394205darkolivegreen
Primary foreground
#d0ef25greenyellow
#d0ef25greenyellow
Secondary
#e2e4d7gainsboro
#1d1d1bblack
Secondary foreground
#4e5337darkolivegreen
#b7b7b3silver
Muted
#eef0e6linen
#181a0fblack
Muted foreground
#4f523ddarkolivegreen
#bfc2adsilver
Accent
#d0d5b4silver
#323428darkslategray
Accent foreground
#34371fdarkslategray
#cccec0silver
Destructive
#95220ebrown
#e53415orangered
Destructive foreground
#fcdfdamistyrose
#ffffffwhite
Border
#e9eae6linen
#1b1c17black
Input
#e9eae6linen
#1b1c17black
Ring
#394205darkolivegreen
#394205darkolivegreen

Contrast

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

Light mode
Text on background20.52:1AAA
Text on card20.54:1AAA
Primary button8.16:1AAA
Secondary button6.26:1AA
Muted text6.98:1AA
Accent8.07:1AAA
Destructive6.62:1AA
Dark mode
Text on background19.04:1AAA
Text on card19.01:1AAA
Primary button8.16:1AAA
Secondary button8.40:1AAA
Muted text9.70:1AAA
Accent7.94:1AAA
Destructive4.34:1AA Large

CSS variables

Paste this into your globals.css to use Negative Dark Olive in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.106 0.018 114.435);
  --muted: oklch(0.95 0.014 113.573);
  --muted-foreground: oklch(0.43 0.034 114.779);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.106 0.018 114.435);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.936 0.006 113.417);
  --input: oklch(0.936 0.006 113.417);
  --primary: oklch(0.36 0.08 118.475);
  --primary-foreground: oklch(0.898 0.203 118.793);
  --secondary: oklch(0.915 0.018 113.669);
  --secondary-foreground: oklch(0.429 0.043 115.188);
  --accent: oklch(0.86 0.044 114.266);
  --accent-foreground: oklch(0.328 0.04 115.61);
  --destructive: oklch(0.442 0.154 32.233);
  --destructive-foreground: oklch(0.925 0.033 29.63);
  --ring: oklch(0.36 0.08 118.475);
  --chart-1: oklch(0.36 0.08 118.475);
  --chart-2: oklch(0.915 0.018 113.669);
  --chart-3: oklch(0.86 0.044 114.266);
  --chart-4: oklch(0.935 0.014 113.579);
  --chart-5: oklch(0.363 0.082 118.589);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.129 0.017 114.191);
  --foreground: oklch(0.981 0.004 113.383);
  --muted: oklch(0.21 0.019 115.011);
  --muted-foreground: oklch(0.807 0.03 113.988);
  --popover: oklch(0.129 0.017 114.191);
  --popover-foreground: oklch(0.981 0.004 113.383);
  --card: oklch(0.148 0.019 114.478);
  --card-foreground: oklch(0.987 0.003 113.357);
  --border: oklch(0.223 0.009 114.034);
  --input: oklch(0.223 0.009 114.034);
  --primary: oklch(0.36 0.08 118.475);
  --primary-foreground: oklch(0.898 0.203 118.793);
  --secondary: oklch(0.229 0.003 113.567);
  --secondary-foreground: oklch(0.778 0.006 113.456);
  --accent: oklch(0.319 0.021 114.505);
  --accent-foreground: oklch(0.846 0.02 113.746);
  --destructive: oklch(0.601 0.216 32.082);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.36 0.08 118.475);
  --chart-1: oklch(0.36 0.08 118.475);
  --chart-2: oklch(0.229 0.003 113.567);
  --chart-3: oklch(0.319 0.021 114.505);
  --chart-4: oklch(0.262 0.004 113.586);
  --chart-5: oklch(0.363 0.082 118.589);
}