Dainty – Monokai for shadcn/ui

Dainty – Monokai is a shadcn/ui theme built around a vivid green primary color (#71ad00) with muted green accents (#515346). The light mode uses a green-tinted background (#282923). Dark mode keeps the vivid green primary (#71ad00) on a green-tinted background (#282923).

Color palette

TokenLightDark
Background
#282923darkslategray
#282923darkslategray
Foreground
#dededegainsboro
#dededegainsboro
Card
#23241eblack
#23241eblack
Card foreground
#ebebeblinen
#ebebeblinen
Popover
#20211cblack
#20211cblack
Popover foreground
#f7f7f7whitesmoke
#f7f7f7whitesmoke
Primary
#71ad00olivedrab
#71ad00olivedrab
Primary foreground
#000000black
#000000black
Secondary
#45532ddarkolivegreen
#45532ddarkolivegreen
Secondary foreground
#dce4cdgainsboro
#dce4cdgainsboro
Muted
#34362bdarkslategray
#34362bdarkslategray
Muted foreground
#b6b9a6darkgray
#b6b9a6darkgray
Accent
#515346darkolivegreen
#515346darkolivegreen
Accent foreground
#e7e8e3gainsboro
#e7e8e3gainsboro
Destructive
#ec1809red
#ec1809red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#333333darkslategray
#333333darkslategray
Input
#3b3b3bdarkslategray
#3b3b3bdarkslategray
Ring
#71ad00olivedrab
#71ad00olivedrab

Contrast

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

Light mode
Text on background10.85:1AAA
Text on card13.14:1AAA
Primary button7.70:1AAA
Secondary button6.33:1AA
Muted text6.11:1AA
Accent6.40:1AA
Destructive4.46:1AA Large
Dark mode
Text on background10.85:1AAA
Text on card13.14:1AAA
Primary button7.70:1AAA
Secondary button6.33:1AA
Muted text6.11:1AA
Accent6.40:1AA
Destructive4.46:1AA Large

CSS variables

Paste this into your globals.css to use Dainty – Monokai in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.279 0.011 114.799);
  --foreground: oklch(0.9 0 188.746);
  --muted: oklch(0.328 0.02 115.195);
  --muted-foreground: oklch(0.779 0.027 114.697);
  --popover: oklch(0.245 0.009 114.756);
  --popover-foreground: oklch(0.977 0 180);
  --card: oklch(0.257 0.01 114.772);
  --card-foreground: oklch(0.939 0 180);
  --border: oklch(0.321 0 180);
  --input: oklch(0.351 0 167.471);
  --primary: oklch(0.681 0.184 130.223);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.42 0.061 124.733);
  --secondary-foreground: oklch(0.907 0.032 122.768);
  --accent: oklch(0.435 0.02 114.906);
  --accent-foreground: oklch(0.928 0.005 114.176);
  --destructive: oklch(0.599 0.237 29.752);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.681 0.184 130.223);
  --chart-1: oklch(0.681 0.184 130.223);
  --chart-2: oklch(0.42 0.061 124.733);
  --chart-3: oklch(0.435 0.02 114.906);
  --chart-4: oklch(0.454 0.067 124.779);
  --chart-5: oklch(0.688 0.187 130.413);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.279 0.011 114.799);
  --foreground: oklch(0.9 0 188.746);
  --muted: oklch(0.328 0.02 115.195);
  --muted-foreground: oklch(0.779 0.027 114.697);
  --popover: oklch(0.245 0.009 114.756);
  --popover-foreground: oklch(0.977 0 180);
  --card: oklch(0.257 0.01 114.772);
  --card-foreground: oklch(0.939 0 180);
  --border: oklch(0.321 0 180);
  --input: oklch(0.351 0 167.471);
  --primary: oklch(0.681 0.184 130.223);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.42 0.061 124.733);
  --secondary-foreground: oklch(0.907 0.032 122.768);
  --accent: oklch(0.435 0.02 114.906);
  --accent-foreground: oklch(0.928 0.005 114.176);
  --destructive: oklch(0.599 0.237 29.752);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.681 0.184 130.223);
  --chart-1: oklch(0.681 0.184 130.223);
  --chart-2: oklch(0.42 0.061 124.733);
  --chart-3: oklch(0.435 0.02 114.906);
  --chart-4: oklch(0.454 0.067 124.779);
  --chart-5: oklch(0.688 0.187 130.413);
}