Donkey for shadcn/ui

Donkey is a shadcn/ui theme built around a green primary color (#37b361) with muted light green accents (#b7ccbe). The light mode uses a neutral background (#fbfefc). Dark mode keeps the green primary (#37b361) on a neutral background (#030705).

Color palette

TokenLightDark
Background
#fbfefcwhite
#030705black
Foreground
#000000black
#f9fbfamintcream
Card
#fbfefcwhite
#030705black
Card foreground
#000000black
#f9fbfamintcream
Popover
#fbfefcwhite
#030705black
Popover foreground
#000000black
#f9fbfamintcream
Primary
#37b361mediumseagreen
#37b361mediumseagreen
Primary foreground
#07170dblack
#07170dblack
Secondary
#cbd2cdlightgrey
#1f2822black
Secondary foreground
#313a34darkslategray
#b4c5basilver
Muted
#e0ebe4gainsboro
#141f18black
Muted foreground
#4e5551darkslategray
#aab1acdarkgray
Accent
#b7ccbesilver
#2d4335darkslategray
Accent foreground
#223026darkslategray
#c8dacelightgrey
Destructive
#af1c0efirebrick
#ef4c3etomato
Destructive foreground
#fef2f1seashell
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#37b361mediumseagreen
#37b361mediumseagreen

Contrast

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

Light mode
Text on background20.69:1AAA
Text on card20.69:1AAA
Primary button6.87:1AA
Secondary button7.65:1AAA
Muted text6.26:1AA
Accent8.18:1AAA
Destructive6.43:1AA
Dark mode
Text on background19.50:1AAA
Text on card19.50:1AAA
Primary button6.87:1AA
Secondary button8.37:1AAA
Muted text7.73:1AAA
Accent7.32:1AAA
Destructive3.62:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.005 157.167);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.93 0.016 156.921);
  --muted-foreground: oklch(0.442 0.011 156.755);
  --popover: oklch(0.994 0.005 157.167);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.994 0.005 157.167);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.681 0.162 150.419);
  --primary-foreground: oklch(0.188 0.032 153.465);
  --secondary: oklch(0.858 0.011 157.003);
  --secondary-foreground: oklch(0.338 0.015 156.317);
  --accent: oklch(0.826 0.03 156.517);
  --accent-foreground: oklch(0.292 0.025 155.368);
  --destructive: oklch(0.484 0.183 30.075);
  --destructive-foreground: oklch(0.97 0.013 23.714);
  --ring: oklch(0.681 0.162 150.419);
  --chart-1: oklch(0.681 0.162 150.419);
  --chart-2: oklch(0.858 0.011 157.003);
  --chart-3: oklch(0.826 0.03 156.517);
  --chart-4: oklch(0.88 0.009 157.052);
  --chart-5: oklch(0.689 0.169 150.075);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.12 0.011 157.056);
  --foreground: oklch(0.986 0.002 157.216);
  --muted: oklch(0.226 0.022 155.136);
  --muted-foreground: oklch(0.753 0.01 157.005);
  --popover: oklch(0.12 0.011 157.056);
  --popover-foreground: oklch(0.986 0.002 157.216);
  --card: oklch(0.12 0.011 157.056);
  --card-foreground: oklch(0.986 0.002 157.216);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.681 0.162 150.419);
  --primary-foreground: oklch(0.188 0.032 153.465);
  --secondary: oklch(0.267 0.017 155.867);
  --secondary-foreground: oklch(0.808 0.025 156.63);
  --accent: oklch(0.359 0.036 154.985);
  --accent-foreground: oklch(0.871 0.025 156.681);
  --destructive: oklch(0.645 0.202 29.023);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.681 0.162 150.419);
  --chart-1: oklch(0.681 0.162 150.419);
  --chart-2: oklch(0.267 0.017 155.867);
  --chart-3: oklch(0.359 0.036 154.985);
  --chart-4: oklch(0.3 0.02 155.793);
  --chart-5: oklch(0.689 0.169 150.075);
}