Elderly Beer Garden for shadcn/ui

Elderly Beer Garden is a shadcn/ui theme built around a green primary color (#3b9a23) with neutral gray accents (#cad0c8). The light mode uses a neutral background (#fcfdfb). Dark mode keeps the green primary (#3b9a23) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fcfdfbsnow
#000000black
Foreground
#050c03black
#fcfdfcwhite
Card
#fcfdfbsnow
#000000black
Card foreground
#050c03black
#fcfdfcwhite
Popover
#fcfdfbsnow
#000000black
Popover foreground
#050c03black
#fcfdfcwhite
Primary
#3b9a23forestgreen
#3b9a23forestgreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#cad0c8lightgrey
#2e2e2edarkslategray
Secondary foreground
#31372fdarkslategray
#c7c7c7silver
Muted
#e7ebe6linen
#191414black
Muted foreground
#455341darkslategray
#beacacdarkgray
Accent
#cad0c8lightgrey
#2e2e2edarkslategray
Accent foreground
#31372fdarkslategray
#c7c7c7silver
Destructive
#7e1d07maroon
#f55f3dtomato
Destructive foreground
#fbc7bbpink
#000000black
Border
#eef2edwhitesmoke
#1a2018black
Input
#eef2edwhitesmoke
#1a2018black
Ring
#3b9a23forestgreen
#3b9a23forestgreen

Contrast

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

Light mode
Text on background19.46:1AAA
Text on card19.46:1AAA
Primary button3.61:1AA Large
Secondary button7.75:1AAA
Muted text6.76:1AA
Accent7.75:1AAA
Destructive6.78:1AA
Dark mode
Text on background20.59:1AAA
Text on card20.59:1AAA
Primary button3.61:1AA Large
Secondary button8.04:1AAA
Muted text8.37:1AAA
Accent8.04:1AAA
Destructive6.57:1AA

CSS variables

Paste this into your globals.css to use Elderly Beer Garden in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 139.443);
  --foreground: oklch(0.142 0.025 137.791);
  --muted: oklch(0.934 0.008 139.442);
  --muted-foreground: oklch(0.424 0.034 139.433);
  --popover: oklch(0.994 0.003 139.443);
  --popover-foreground: oklch(0.142 0.025 137.791);
  --card: oklch(0.994 0.003 139.443);
  --card-foreground: oklch(0.142 0.025 137.791);
  --border: oklch(0.957 0.007 139.442);
  --input: oklch(0.957 0.007 139.442);
  --primary: oklch(0.606 0.177 140.221);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.85 0.012 139.441);
  --secondary-foreground: oklch(0.327 0.015 139.434);
  --accent: oklch(0.85 0.012 139.441);
  --accent-foreground: oklch(0.327 0.015 139.434);
  --destructive: oklch(0.391 0.136 33.463);
  --destructive-foreground: oklch(0.873 0.062 32.86);
  --ring: oklch(0.606 0.177 140.221);
  --chart-1: oklch(0.606 0.177 140.221);
  --chart-2: oklch(0.85 0.012 139.441);
  --chart-3: oklch(0.85 0.012 139.441);
  --chart-4: oklch(0.873 0.01 139.441);
  --chart-5: oklch(0.613 0.182 140.312);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.993 0.002 139.444);
  --muted: oklch(0.199 0.008 17.864);
  --muted-foreground: oklch(0.76 0.021 17.613);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.993 0.002 139.444);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.993 0.002 139.444);
  --border: oklch(0.235 0.019 139.433);
  --input: oklch(0.235 0.019 139.433);
  --primary: oklch(0.606 0.177 140.221);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.301 0 189.462);
  --secondary-foreground: oklch(0.829 0 180);
  --accent: oklch(0.301 0 189.462);
  --accent-foreground: oklch(0.829 0 180);
  --destructive: oklch(0.674 0.191 34.149);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.606 0.177 140.221);
  --chart-1: oklch(0.606 0.177 140.221);
  --chart-2: oklch(0.301 0 189.462);
  --chart-3: oklch(0.301 0 189.462);
  --chart-4: oklch(0.331 0 180);
  --chart-5: oklch(0.613 0.182 140.312);
}