Dainty – Dracula is a shadcn/ui theme built around a vivid green primary color (#00b83d) with muted blue accents (#484b61). The light mode uses a blue-tinted background (#272935). Dark mode keeps the vivid green primary (#00b83d) on a blue-tinted background (#272935).
| Token | Light | Dark |
|---|---|---|
| Background | #272935darkslategray | #272935darkslategray |
| Foreground | #dfe0e2gainsboro | #dfe0e2gainsboro |
| Card | #23252fdarkslategray | #23252fdarkslategray |
| Card foreground | #ecedeewhitesmoke | #ecedeewhitesmoke |
| Popover | #21222cdarkslategray | #21222cdarkslategray |
| Popover foreground | #fafafasnow | #fafafasnow |
| Primary | #00b83dlimegreen | #00b83dlimegreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #acd2b9silver | #acd2b9silver |
| Secondary foreground | #1b3222darkslategray | #1b3222darkslategray |
| Muted | #31333fdarkslategray | #31333fdarkslategray |
| Muted foreground | #afb2c0silver | #afb2c0silver |
| Accent | #484b61darkslategray | #484b61darkslategray |
| Accent foreground | #eaebf0lavender | #eaebf0lavender |
| Destructive | #ed0c0cred | #ed0c0cred |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #38393edarkslategray | #38393edarkslategray |
| Input | #3f4046darkslategray | #3f4046darkslategray |
| Ring | #00b83dlimegreen | #00b83dlimegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 10.92:1 | AAA |
| Text on card | 13.07:1 | AAA |
| Primary button | 2.66:1 | Fail |
| Secondary button | 8.33:1 | AAA |
| Muted text | 5.90:1 | AA |
| Accent | 7.17:1 | AAA |
| Destructive | 4.49:1 | AA Large |
| Text on background | 10.92:1 | AAA |
| Text on card | 13.07:1 | AAA |
| Primary button | 2.66:1 | Fail |
| Secondary button | 8.33:1 | AAA |
| Muted text | 5.90:1 | AA |
| Accent | 7.17:1 | AAA |
| Destructive | 4.49:1 | AA Large |
Paste this into your globals.css to use Dainty – Dracula in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.284 0.022 277.093);
--foreground: oklch(0.906 0.003 264.541);
--muted: oklch(0.325 0.02 277.326);
--muted-foreground: oklch(0.765 0.021 277.909);
--popover: oklch(0.256 0.019 277.158);
--popover-foreground: oklch(0.985 0 264.549);
--card: oklch(0.265 0.02 277.135);
--card-foreground: oklch(0.946 0.002 264.546);
--border: oklch(0.344 0.009 277.939);
--input: oklch(0.373 0.01 277.93);
--primary: oklch(0.68 0.206 146.245);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.83 0.054 155.869);
--secondary-foreground: oklch(0.292 0.04 153.977);
--accent: oklch(0.419 0.036 276.917);
--accent-foreground: oklch(0.942 0.006 278.223);
--destructive: oklch(0.598 0.241 28.871);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.68 0.206 146.245);
--chart-1: oklch(0.68 0.206 146.245);
--chart-2: oklch(0.83 0.054 155.869);
--chart-3: oklch(0.419 0.036 276.917);
--chart-4: oklch(0.851 0.047 156.081);
--chart-5: oklch(0.687 0.21 146.06);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.284 0.022 277.093);
--foreground: oklch(0.906 0.003 264.541);
--muted: oklch(0.325 0.02 277.326);
--muted-foreground: oklch(0.765 0.021 277.909);
--popover: oklch(0.256 0.019 277.158);
--popover-foreground: oklch(0.985 0 264.549);
--card: oklch(0.265 0.02 277.135);
--card-foreground: oklch(0.946 0.002 264.546);
--border: oklch(0.344 0.009 277.939);
--input: oklch(0.373 0.01 277.93);
--primary: oklch(0.68 0.206 146.245);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.83 0.054 155.869);
--secondary-foreground: oklch(0.292 0.04 153.977);
--accent: oklch(0.419 0.036 276.917);
--accent-foreground: oklch(0.942 0.006 278.223);
--destructive: oklch(0.598 0.241 28.871);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.68 0.206 146.245);
--chart-1: oklch(0.68 0.206 146.245);
--chart-2: oklch(0.83 0.054 155.869);
--chart-3: oklch(0.419 0.036 276.917);
--chart-4: oklch(0.851 0.047 156.081);
--chart-5: oklch(0.687 0.21 146.06);
}