Drinking for shadcn/ui

Drinking is a shadcn/ui theme built around an orange primary color (#e1ac6b) with muted light orange accents (#d5cfc8). The light mode uses a neutral background (#fefdfb). Dark mode keeps the orange primary (#e1ac6b) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fefdfbsnow
#000000black
Foreground
#090502black
#fdfcfcsnow
Card
#fdfaf7snow
#030303black
Card foreground
#040301black
#ffffffwhite
Popover
#fdfaf7snow
#030303black
Popover foreground
#040301black
#ffffffwhite
Primary
#e1ac6bsandybrown
#e1ac6bsandybrown
Primary foreground
#150e04black
#150e04black
Secondary
#e2e1dfgainsboro
#161513black
Secondary foreground
#4b4844darkslategray
#b2aea9darkgray
Muted
#f2f0eewhitesmoke
#110f0dblack
Muted foreground
#5e5e5edimgray
#a1a1a1darkgray
Accent
#d5cfc8lightgrey
#322c25darkslategray
Accent foreground
#3d362fdarkslategray
#cdc5bcsilver
Destructive
#7a2005maroon
#f54c19orangered
Destructive foreground
#fcc6b6lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e1ac6bsandybrown
#e1ac6bsandybrown

Contrast

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

Light mode
Text on background19.91:1AAA
Text on card19.83:1AAA
Primary button9.37:1AAA
Secondary button6.93:1AA
Muted text5.69:1AA
Accent7.69:1AAA
Destructive6.78:1AA
Dark mode
Text on background20.50:1AAA
Text on card20.67:1AAA
Primary button9.37:1AAA
Secondary button8.30:1AAA
Muted text7.38:1AAA
Accent8.08:1AAA
Destructive3.52:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.002 73.201);
  --foreground: oklch(0.121 0.016 82.106);
  --muted: oklch(0.955 0.003 73.194);
  --muted-foreground: oklch(0.483 0 180);
  --popover: oklch(0.987 0.005 73.183);
  --popover-foreground: oklch(0.096 0.013 82.106);
  --card: oklch(0.987 0.005 73.183);
  --card-foreground: oklch(0.096 0.013 82.106);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.778 0.103 70.917);
  --primary-foreground: oklch(0.169 0.023 74.493);
  --secondary: oklch(0.909 0.003 73.197);
  --secondary-foreground: oklch(0.403 0.008 73.067);
  --accent: oklch(0.858 0.011 73.118);
  --accent-foreground: oklch(0.338 0.016 72.79);
  --destructive: oklch(0.389 0.129 35.737);
  --destructive-foreground: oklch(0.87 0.066 37.594);
  --ring: oklch(0.778 0.103 70.917);
  --chart-1: oklch(0.778 0.103 70.917);
  --chart-2: oklch(0.909 0.003 73.197);
  --chart-3: oklch(0.858 0.011 73.118);
  --chart-4: oklch(0.932 0.002 73.203);
  --chart-5: oklch(0.781 0.107 70.733);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.993 0.001 73.214);
  --muted: oklch(0.172 0.005 72.981);
  --muted-foreground: oklch(0.708 0 158.199);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.778 0.103 70.917);
  --primary-foreground: oklch(0.169 0.023 74.493);
  --secondary: oklch(0.194 0.003 73.092);
  --secondary-foreground: oklch(0.753 0.009 73.127);
  --accent: oklch(0.297 0.015 72.736);
  --accent-foreground: oklch(0.828 0.016 73.067);
  --destructive: oklch(0.652 0.213 35.725);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.778 0.103 70.917);
  --chart-1: oklch(0.778 0.103 70.917);
  --chart-2: oklch(0.194 0.003 73.092);
  --chart-3: oklch(0.297 0.015 72.736);
  --chart-4: oklch(0.228 0.004 73.074);
  --chart-5: oklch(0.781 0.107 70.733);
}