Drinking for shadcn/ui

Drinking is a shadcn/ui theme built around a deep green primary color (#122f0a) with muted light green accents (#d5e0d2). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep green primary (#122f0a) on a neutral background (#040802).

Color palette

TokenLightDark
Background
#ffffffwhite
#040802black
Foreground
#030902black
#fcfdfcwhite
Card
#ffffffwhite
#040802black
Card foreground
#030902black
#fcfdfcwhite
Popover
#ffffffwhite
#040802black
Popover foreground
#030902black
#fcfdfcwhite
Primary
#122f0ablack
#122f0ablack
Primary foreground
#53d530limegreen
#53d530limegreen
Secondary
#d5e0d2gainsboro
#192117black
Secondary foreground
#394b34darkslategray
#adc3a7darkgray
Muted
#d6ded4gainsboro
#232b21darkslategray
Muted foreground
#3f403fdarkslategray
#bfc0bfsilver
Accent
#d5e0d2gainsboro
#192117black
Accent foreground
#394b34darkslategray
#adc3a7darkgray
Destructive
#6a200bmaroon
#eb6642tomato
Destructive foreground
#f7c0b1lightpink
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#122f0ablack
#122f0ablack

Contrast

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

Light mode
Text on background20.11:1AAA
Text on card20.11:1AAA
Primary button7.64:1AAA
Secondary button6.89:1AA
Muted text7.55:1AAA
Accent6.89:1AA
Destructive7.20:1AAA
Dark mode
Text on background19.80:1AAA
Text on card19.80:1AAA
Primary button7.64:1AAA
Secondary button8.73:1AAA
Muted text7.96:1AAA
Accent8.73:1AAA
Destructive6.53:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.126 0.026 136.848);
  --muted: oklch(0.891 0.016 138.897);
  --muted-foreground: oklch(0.372 0.003 138.893);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.126 0.026 136.848);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.126 0.026 136.848);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.271 0.071 139.55);
  --primary-foreground: oklch(0.77 0.227 140.025);
  --secondary: oklch(0.894 0.022 138.9);
  --secondary-foreground: oklch(0.391 0.044 138.967);
  --accent: oklch(0.894 0.022 138.9);
  --accent-foreground: oklch(0.391 0.044 138.967);
  --destructive: oklch(0.358 0.11 35.636);
  --destructive-foreground: oklch(0.852 0.067 35.994);
  --ring: oklch(0.271 0.071 139.55);
  --chart-1: oklch(0.271 0.071 139.55);
  --chart-2: oklch(0.894 0.022 138.9);
  --chart-3: oklch(0.894 0.022 138.9);
  --chart-4: oklch(0.915 0.017 138.898);
  --chart-5: oklch(0.274 0.073 139.599);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.021 137.205);
  --foreground: oklch(0.993 0.002 138.891);
  --muted: oklch(0.279 0.021 138.93);
  --muted-foreground: oklch(0.806 0.002 138.892);
  --popover: oklch(0.124 0.021 137.205);
  --popover-foreground: oklch(0.993 0.002 138.891);
  --card: oklch(0.124 0.021 137.205);
  --card-foreground: oklch(0.993 0.002 138.891);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.271 0.071 139.55);
  --primary-foreground: oklch(0.77 0.227 140.025);
  --secondary: oklch(0.237 0.023 138.95);
  --secondary-foreground: oklch(0.793 0.046 138.917);
  --accent: oklch(0.237 0.023 138.95);
  --accent-foreground: oklch(0.793 0.046 138.917);
  --destructive: oklch(0.67 0.173 36.298);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.271 0.071 139.55);
  --chart-1: oklch(0.271 0.071 139.55);
  --chart-2: oklch(0.237 0.023 138.95);
  --chart-3: oklch(0.237 0.023 138.95);
  --chart-4: oklch(0.272 0.029 138.958);
  --chart-5: oklch(0.274 0.073 139.599);
}