Drink for shadcn/ui

Drink is a shadcn/ui theme built around a deep green primary color (#0b1e11) with deep orange accents (#1e110b). The light mode uses a neutral background (#fbfdfc). Dark mode keeps the deep green primary (#0b1e11) on a green-tinted background (#040b06).

Color palette

TokenLightDark
Background
#fbfdfcwhite
#040b06black
Foreground
#041108black
#fbfdfcwhite
Card
#fbfdfcwhite
#040b06black
Card foreground
#041108black
#fbfdfcwhite
Popover
#fbfdfcwhite
#040b06black
Popover foreground
#041108black
#fbfdfcwhite
Primary
#0b1e11black
#0b1e11black
Primary foreground
#40b567mediumseagreen
#40b567mediumseagreen
Secondary
#110b1eblack
#110b1eblack
Secondary foreground
#a086d5mediumpurple
#a086d5mediumpurple
Muted
#d6d0e2gainsboro
#231d2fdarkslategray
Muted foreground
#564f63dimgray
#a29cb0darkgray
Accent
#1e110bblack
#1e110bblack
Accent foreground
#d5a086tan
#d5a086tan
Destructive
#da1107red
#f8352aorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0b1e11black
#0b1e11black

Contrast

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

Light mode
Text on background18.95:1AAA
Text on card18.95:1AAA
Primary button6.63:1AA
Secondary button6.30:1AA
Muted text5.18:1AA
Accent8.06:1AAA
Destructive5.17:1AA
Dark mode
Text on background19.45:1AAA
Text on card19.45:1AAA
Primary button6.63:1AA
Secondary button6.30:1AA
Muted text6.11:1AA
Accent8.06:1AAA
Destructive3.78:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 157.207);
  --foreground: oklch(0.159 0.027 155.465);
  --muted: oklch(0.867 0.025 301.033);
  --muted-foreground: oklch(0.443 0.033 300.296);
  --popover: oklch(0.994 0.003 157.207);
  --popover-foreground: oklch(0.159 0.027 155.465);
  --card: oklch(0.994 0.003 157.207);
  --card-foreground: oklch(0.159 0.027 155.465);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.215 0.037 153.025);
  --primary-foreground: oklch(0.689 0.155 150.981);
  --secondary: oklch(0.168 0.04 297.252);
  --secondary-foreground: oklch(0.675 0.116 298.592);
  --accent: oklch(0.194 0.025 47.341);
  --accent-foreground: oklch(0.749 0.072 47.734);
  --destructive: oklch(0.562 0.224 29.529);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.215 0.037 153.025);
  --chart-1: oklch(0.215 0.037 153.025);
  --chart-2: oklch(0.168 0.04 297.252);
  --chart-3: oklch(0.194 0.025 47.341);
  --chart-4: oklch(0.195 0.053 296.552);
  --chart-5: oklch(0.216 0.038 152.766);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.14 0.017 156.899);
  --foreground: oklch(0.994 0.003 157.208);
  --muted: oklch(0.248 0.034 299.24);
  --muted-foreground: oklch(0.704 0.029 300.826);
  --popover: oklch(0.14 0.017 156.899);
  --popover-foreground: oklch(0.994 0.003 157.208);
  --card: oklch(0.14 0.017 156.899);
  --card-foreground: oklch(0.994 0.003 157.208);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.215 0.037 153.025);
  --primary-foreground: oklch(0.689 0.155 150.981);
  --secondary: oklch(0.168 0.04 297.252);
  --secondary-foreground: oklch(0.675 0.116 298.592);
  --accent: oklch(0.194 0.025 47.341);
  --accent-foreground: oklch(0.749 0.072 47.734);
  --destructive: oklch(0.638 0.231 28.745);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.215 0.037 153.025);
  --chart-1: oklch(0.215 0.037 153.025);
  --chart-2: oklch(0.168 0.04 297.252);
  --chart-3: oklch(0.194 0.025 47.341);
  --chart-4: oklch(0.195 0.053 296.552);
  --chart-5: oklch(0.216 0.038 152.766);
}