Unhappy Poker Green for shadcn/ui

Unhappy Poker Green is a shadcn/ui theme built around a muted green primary color (#3a644a) with green accents (#d2dc7e). The light mode uses a neutral background (#fdfdfc). Dark mode switches to a muted teal primary (#3a6452) on a green-tinted background (#0c0f05).

Color palette

TokenLightDark
Background
#fdfdfcwhite
#0c0f05black
Foreground
#020906black
#f5f9f8whitesmoke
Card
#f8fcfamintcream
#11160eblack
Card foreground
#010403black
#f9fbfamintcream
Popover
#f8fcfamintcream
#11160eblack
Popover foreground
#010403black
#f9fbfamintcream
Primary
#3a644adarkslategray
#3a6452darkslategray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#c4d69esilver
#5f7a57dimgray
Secondary foreground
#4d7004darkolivegreen
#ffffffwhite
Muted
#eeefeewhitesmoke
#1a1e18black
Muted foreground
#505e51darkslategray
#a1afa2darkgray
Accent
#d2dc7ekhaki
#798041olivedrab
Accent foreground
#656c2bdarkolivegreen
#ffffffwhite
Destructive
#c50a07firebrick
#f72522crimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#f0f1f1whitesmoke
#1e1f1fblack
Input
#eaebeblavender
#2b2d2cdarkslategray
Ring
#3a6452darkslategray
#3a6452darkslategray

Contrast

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

Light mode
Text on background19.72:1AAA
Text on card19.89:1AAA
Primary button6.77:1AA
Secondary button3.69:1AA Large
Muted text5.96:1AA
Accent3.81:1AA Large
Destructive6.14:1AA
Dark mode
Text on background18.20:1AAA
Text on card17.61:1AAA
Primary button6.74:1AA
Secondary button4.75:1AA
Muted text7.36:1AAA
Accent4.24:1AA Large
Destructive4.00:1AA Large

CSS variables

Paste this into your globals.css to use Unhappy Poker Green in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.001 92.482);
  --foreground: oklch(0.126 0.019 169.025);
  --muted: oklch(0.952 0.002 147.522);
  --muted-foreground: oklch(0.465 0.027 146.955);
  --popover: oklch(0.988 0.005 165.012);
  --popover-foreground: oklch(0.1 0.015 169.025);
  --card: oklch(0.988 0.005 165.012);
  --card-foreground: oklch(0.1 0.015 169.025);
  --border: oklch(0.958 0.002 197.133);
  --input: oklch(0.939 0.001 197.14);
  --primary: oklch(0.464 0.064 155.626);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.848 0.076 122.469);
  --secondary-foreground: oklch(0.499 0.129 128.052);
  --accent: oklch(0.866 0.118 113.663);
  --accent-foreground: oklch(0.51 0.088 114.647);
  --destructive: oklch(0.52 0.209 29.095);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.466 0.055 164.784);
  --chart-1: oklch(0.466 0.055 164.784);
  --chart-2: oklch(0.461 0.077 145.697);
  --chart-3: oklch(0.465 0.044 201.559);
  --chart-4: oklch(0.491 0.083 145.674);
  --chart-5: oklch(0.471 0.061 164.332);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.161 0.022 123.937);
  --foreground: oklch(0.98 0.005 168.597);
  --muted: oklch(0.229 0.012 135.083);
  --muted-foreground: oklch(0.74 0.024 147.22);
  --popover: oklch(0.192 0.017 133.938);
  --popover-foreground: oklch(0.986 0.003 168.643);
  --card: oklch(0.193 0.018 132.791);
  --card-foreground: oklch(0.986 0.003 168.643);
  --border: oklch(0.239 0.002 168.477);
  --input: oklch(0.296 0.003 168.48);
  --primary: oklch(0.466 0.055 164.784);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.549 0.062 138.835);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.578 0.085 114.09);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.625 0.239 28.306);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.466 0.055 164.784);
  --chart-1: oklch(0.466 0.055 164.784);
  --chart-2: oklch(0.461 0.077 145.697);
  --chart-3: oklch(0.465 0.044 201.559);
  --chart-4: oklch(0.491 0.083 145.674);
  --chart-5: oklch(0.471 0.061 164.332);
}