Dainty – Monokai Night is a shadcn/ui theme built around a vivid green primary color (#71ad00) with neutral gray accents (#454545). The light mode uses a neutral background (#1f1f1f). Dark mode keeps the vivid green primary (#71ad00) on a neutral background (#1f1f1f).
| Token | Light | Dark |
|---|---|---|
| Background | #1f1f1fblack | #1f1f1fblack |
| Foreground | #dededegainsboro | #dededegainsboro |
| Card | #1a1a1ablack | #1a1a1ablack |
| Card foreground | #ebebeblinen | #ebebeblinen |
| Popover | #171717black | #171717black |
| Popover foreground | #f7f7f7whitesmoke | #f7f7f7whitesmoke |
| Primary | #71ad00olivedrab | #71ad00olivedrab |
| Primary foreground | #000000black | #000000black |
| Secondary | #45532ddarkolivegreen | #45532ddarkolivegreen |
| Secondary foreground | #dce4cdgainsboro | #dce4cdgainsboro |
| Muted | #2e2424darkslategray | #2e2424darkslategray |
| Muted foreground | #b39e9edarkgray | #b39e9edarkgray |
| Accent | #454545darkslategray | #454545darkslategray |
| Accent foreground | #dededegainsboro | #dededegainsboro |
| Destructive | #f9351forangered | #f9351forangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #2b2b2bdarkslategray | #2b2b2bdarkslategray |
| Input | #333333darkslategray | #333333darkslategray |
| Ring | #71ad00olivedrab | #71ad00olivedrab |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 12.30:1 | AAA |
| Text on card | 14.67:1 | AAA |
| Primary button | 7.70:1 | AAA |
| Secondary button | 6.33:1 | AA |
| Muted text | 5.96:1 | AA |
| Accent | 7.14:1 | AAA |
| Destructive | 3.77:1 | AA Large |
| Text on background | 12.30:1 | AAA |
| Text on card | 14.67:1 | AAA |
| Primary button | 7.70:1 | AAA |
| Secondary button | 6.33:1 | AA |
| Muted text | 5.96:1 | AA |
| Accent | 7.14:1 | AAA |
| Destructive | 3.77:1 | AA Large |
Paste this into your globals.css to use Dainty – Monokai Night in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.238 0 161.565);
--foreground: oklch(0.9 0 188.746);
--muted: oklch(0.271 0.015 18.11);
--muted-foreground: oklch(0.717 0.025 17.739);
--popover: oklch(0.204 0 180);
--popover-foreground: oklch(0.977 0 180);
--card: oklch(0.216 0 180);
--card-foreground: oklch(0.939 0 180);
--border: oklch(0.29 0 180);
--input: oklch(0.321 0 180);
--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.39 0 165.964);
--accent-foreground: oklch(0.9 0 188.746);
--destructive: oklch(0.639 0.233 30.505);
--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.39 0 165.964);
--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.238 0 161.565);
--foreground: oklch(0.9 0 188.746);
--muted: oklch(0.271 0.015 18.11);
--muted-foreground: oklch(0.717 0.025 17.739);
--popover: oklch(0.204 0 180);
--popover-foreground: oklch(0.977 0 180);
--card: oklch(0.216 0 180);
--card-foreground: oklch(0.939 0 180);
--border: oklch(0.29 0 180);
--input: oklch(0.321 0 180);
--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.39 0 165.964);
--accent-foreground: oklch(0.9 0 188.746);
--destructive: oklch(0.639 0.233 30.505);
--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.39 0 165.964);
--chart-4: oklch(0.454 0.067 124.779);
--chart-5: oklch(0.688 0.187 130.413);
}