Dealing for shadcn/ui

Dealing is a shadcn/ui theme built around a deep green primary color (#0d1a04) with muted light green accents (#dae2d4). The light mode uses a neutral background (#fafbf8). Dark mode keeps the deep green primary (#0d1a04) on a green-tinted background (#090f05).

Color palette

TokenLightDark
Background
#fafbf8snow
#090f05black
Foreground
#020401black
#fafcf8snow
Card
#f7faf5whitesmoke
#0c1307black
Card foreground
#000000black
#fcfdfbsnow
Popover
#f7faf5whitesmoke
#0c1307black
Popover foreground
#000000black
#fcfdfbsnow
Primary
#0d1a04black
#0d1a04black
Primary foreground
#67cb20yellowgreen
#67cb20yellowgreen
Secondary
#dae2d4gainsboro
#30352cdarkslategray
Secondary foreground
#405035darkslategray
#c9cfc4silver
Muted
#dfe6dbgainsboro
#1e2419black
Muted foreground
#444941darkslategray
#b9beb6silver
Accent
#dae2d4gainsboro
#30352cdarkslategray
Accent foreground
#405035darkslategray
#c9cfc4silver
Destructive
#8a200fdarkred
#e94d35tomato
Destructive foreground
#fad7d1bisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0d1a04black
#0d1a04black

Contrast

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

Light mode
Text on background19.86:1AAA
Text on card19.91:1AAA
Primary button8.65:1AAA
Secondary button6.56:1AA
Muted text7.25:1AAA
Accent6.56:1AA
Destructive6.87:1AA
Dark mode
Text on background18.77:1AAA
Text on card18.53:1AAA
Primary button8.65:1AAA
Secondary button7.88:1AAA
Muted text8.37:1AAA
Accent7.88:1AAA
Destructive3.77:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.005 131.762);
  --foreground: oklch(0.099 0.015 130.439);
  --muted: oklch(0.917 0.017 131.878);
  --muted-foreground: oklch(0.398 0.015 132.037);
  --popover: oklch(0.981 0.007 131.782);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.981 0.007 131.782);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.201 0.046 133.341);
  --primary-foreground: oklch(0.752 0.215 136.262);
  --secondary: oklch(0.904 0.021 131.917);
  --secondary-foreground: oklch(0.408 0.047 132.755);
  --accent: oklch(0.904 0.021 131.917);
  --accent-foreground: oklch(0.408 0.047 132.755);
  --destructive: oklch(0.417 0.144 31.655);
  --destructive-foreground: oklch(0.906 0.04 28.225);
  --ring: oklch(0.201 0.046 133.341);
  --chart-1: oklch(0.201 0.046 133.341);
  --chart-2: oklch(0.904 0.021 131.917);
  --chart-3: oklch(0.904 0.021 131.917);
  --chart-4: oklch(0.925 0.017 131.871);
  --chart-5: oklch(0.202 0.047 133.351);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.159 0.023 131.544);
  --foreground: oklch(0.988 0.006 131.772);
  --muted: oklch(0.251 0.023 132.536);
  --muted-foreground: oklch(0.796 0.013 131.854);
  --popover: oklch(0.174 0.027 132.603);
  --popover-foreground: oklch(0.994 0.003 131.748);
  --card: oklch(0.174 0.027 132.603);
  --card-foreground: oklch(0.994 0.003 131.748);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.201 0.046 133.341);
  --primary-foreground: oklch(0.752 0.215 136.262);
  --secondary: oklch(0.321 0.018 132.208);
  --secondary-foreground: oklch(0.846 0.016 131.881);
  --accent: oklch(0.321 0.018 132.208);
  --accent-foreground: oklch(0.846 0.016 131.881);
  --destructive: oklch(0.634 0.196 31.516);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.201 0.046 133.341);
  --chart-1: oklch(0.201 0.046 133.341);
  --chart-2: oklch(0.321 0.018 132.208);
  --chart-3: oklch(0.321 0.018 132.208);
  --chart-4: oklch(0.353 0.021 132.224);
  --chart-5: oklch(0.202 0.047 133.351);
}