Yodelling Intoxicate for shadcn/ui

Yodelling Intoxicate is a shadcn/ui theme built around a vivid green primary color (#16a34a) with near-white accents (#f4f4f5). The light mode uses a neutral background (#ffffff). Dark mode switches to a green primary (#1eb95a) on a neutral background (#050505).

Color palette

TokenLightDark
Background
#ffffffwhite
#050505black
Foreground
#09090bblack
#f2f2f2whitesmoke
Card
#ffffffwhite
#141414black
Card foreground
#09090bblack
#f2f2f2whitesmoke
Popover
#ffffffwhite
#0f0f0fblack
Popover foreground
#09090bblack
#f2f2f2whitesmoke
Primary
#16a34aseagreen
#1eb95amediumseagreen
Primary foreground
#fff1f2lavenderblush
#282828darkslategray
Secondary
#f4f4f5whitesmoke
#191919black
Secondary foreground
#18181bblack
#fafafasnow
Muted
#f4f4f5whitesmoke
#191919black
Muted foreground
#71717adimgray
#e0e0e0gainsboro
Accent
#f4f4f5whitesmoke
#292524darkslategray
Accent foreground
#18181bblack
#fafafasnow
Destructive
#ef4444tomato
#ab1818firebrick
Destructive foreground
#fafafasnow
#fef2f2lavenderblush
Border
#e4e4e7gainsboro
#27272adarkslategray
Input
#e4e4e7gainsboro
#27272adarkslategray
Ring
#16a34aseagreen
#19823cforestgreen

Contrast

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

Light mode
Text on background19.89:1AAA
Text on card19.89:1AAA
Primary button2.99:1Fail
Secondary button16.12:1AAA
Muted text4.39:1AA Large
Accent16.12:1AAA
Destructive3.60:1AA Large
Dark mode
Text on background18.20:1AAA
Text on card16.45:1AAA
Primary button5.71:1AA
Secondary button16.84:1AAA
Muted text13.31:1AAA
Accent14.53:1AAA
Destructive6.69:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.141 0.004 285.824);
  --muted: oklch(0.968 0.001 286.375);
  --muted-foreground: oklch(0.552 0.014 285.942);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.141 0.004 285.824);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.141 0.004 285.824);
  --border: oklch(0.92 0.004 286.32);
  --input: oklch(0.92 0.004 286.32);
  --primary: oklch(0.627 0.17 149.2);
  --primary-foreground: oklch(0.97 0.015 12.399);
  --secondary: oklch(0.968 0.001 286.375);
  --secondary-foreground: oklch(0.21 0.006 285.883);
  --accent: oklch(0.968 0.001 286.375);
  --accent-foreground: oklch(0.21 0.006 285.883);
  --destructive: oklch(0.637 0.208 25.326);
  --destructive-foreground: oklch(0.985 0 180);
  --ring: oklch(0.627 0.17 149.2);
  --chart-1: oklch(0.627 0.17 149.2);
  --chart-2: oklch(0.968 0.001 286.375);
  --chart-3: oklch(0.968 0.001 286.375);
  --chart-4: oklch(0.991 0 286.393);
  --chart-5: oklch(0.635 0.175 148.9);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.115 0 171.254);
  --foreground: oklch(0.962 0 180);
  --muted: oklch(0.213 0 168.69);
  --muted-foreground: oklch(0.906 0 180);
  --popover: oklch(0.168 0 180);
  --popover-foreground: oklch(0.962 0 180);
  --card: oklch(0.191 0 180);
  --card-foreground: oklch(0.962 0 180);
  --border: oklch(0.274 0.005 286.033);
  --input: oklch(0.274 0.005 286.033);
  --primary: oklch(0.69 0.182 150.094);
  --primary-foreground: oklch(0.277 0 172.875);
  --secondary: oklch(0.213 0 168.69);
  --secondary-foreground: oklch(0.985 0 180);
  --accent: oklch(0.269 0.006 34.297);
  --accent-foreground: oklch(0.985 0 180);
  --destructive: oklch(0.475 0.18 27.61);
  --destructive-foreground: oklch(0.971 0.013 17.376);
  --ring: oklch(0.533 0.14 149.174);
  --chart-1: oklch(0.69 0.182 150.094);
  --chart-2: oklch(0.213 0 168.69);
  --chart-3: oklch(0.269 0.006 34.297);
  --chart-4: oklch(0.246 0 180);
  --chart-5: oklch(0.698 0.187 149.769);
}