Dainty – Dark+ is a shadcn/ui theme built around a blue primary color (#5fa4dd) with neutral gray accents (#454545). The light mode uses a neutral background (#1f1f1f). Dark mode keeps the blue primary (#5fa4dd) on a neutral background (#1f1f1f).
| Token | Light | Dark |
|---|---|---|
| Background | #1f1f1fblack | #1f1f1fblack |
| Foreground | #dbdbdbgainsboro | #dbdbdbgainsboro |
| Card | #1a1a1ablack | #1a1a1ablack |
| Card foreground | #e8e8e8lavender | #e8e8e8lavender |
| Popover | #171717black | #171717black |
| Popover foreground | #f5f5f5whitesmoke | #f5f5f5whitesmoke |
| Primary | #5fa4ddcornflowerblue | #5fa4ddcornflowerblue |
| Primary foreground | #020508black | #020508black |
| Secondary | #2d4253darkslategray | #2d4253darkslategray |
| Secondary foreground | #cddae4gainsboro | #cddae4gainsboro |
| Muted | #2e2424darkslategray | #2e2424darkslategray |
| Muted foreground | #b39e9edarkgray | #b39e9edarkgray |
| Accent | #454545darkslategray | #454545darkslategray |
| Accent foreground | #dededegainsboro | #dededegainsboro |
| Destructive | #eb3c19orangered | #eb3c19orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #2b2b2bdarkslategray | #2b2b2bdarkslategray |
| Input | #333333darkslategray | #333333darkslategray |
| Ring | #5fa4ddcornflowerblue | #5fa4ddcornflowerblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 11.95:1 | AAA |
| Text on card | 14.27:1 | AAA |
| Primary button | 7.65:1 | AAA |
| Secondary button | 7.35:1 | AAA |
| Muted text | 5.96:1 | AA |
| Accent | 7.14:1 | AAA |
| Destructive | 4.04:1 | AA Large |
| Text on background | 11.95:1 | AAA |
| Text on card | 14.27:1 | AAA |
| Primary button | 7.65:1 | AAA |
| Secondary button | 7.35:1 | AAA |
| Muted text | 5.96:1 | AA |
| Accent | 7.14:1 | AAA |
| Destructive | 4.04:1 | AA Large |
Paste this into your globals.css to use Dainty – Dark+ in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.238 0 161.565);
--foreground: oklch(0.892 0 180);
--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.97 0 180);
--card: oklch(0.216 0 180);
--card-foreground: oklch(0.931 0 180);
--border: oklch(0.29 0 180);
--input: oklch(0.321 0 180);
--primary: oklch(0.698 0.109 244.967);
--primary-foreground: oklch(0.113 0.014 233.487);
--secondary: oklch(0.368 0.04 243.845);
--secondary-foreground: oklch(0.882 0.02 242.49);
--accent: oklch(0.39 0 165.964);
--accent-foreground: oklch(0.9 0 188.746);
--destructive: oklch(0.619 0.216 32.796);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.698 0.109 244.967);
--chart-1: oklch(0.698 0.109 244.967);
--chart-2: oklch(0.368 0.04 243.845);
--chart-3: oklch(0.39 0 165.964);
--chart-4: oklch(0.396 0.044 243.885);
--chart-5: oklch(0.698 0.114 245.147);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.238 0 161.565);
--foreground: oklch(0.892 0 180);
--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.97 0 180);
--card: oklch(0.216 0 180);
--card-foreground: oklch(0.931 0 180);
--border: oklch(0.29 0 180);
--input: oklch(0.321 0 180);
--primary: oklch(0.698 0.109 244.967);
--primary-foreground: oklch(0.113 0.014 233.487);
--secondary: oklch(0.368 0.04 243.845);
--secondary-foreground: oklch(0.882 0.02 242.49);
--accent: oklch(0.39 0 165.964);
--accent-foreground: oklch(0.9 0 188.746);
--destructive: oklch(0.619 0.216 32.796);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.698 0.109 244.967);
--chart-1: oklch(0.698 0.109 244.967);
--chart-2: oklch(0.368 0.04 243.845);
--chart-3: oklch(0.39 0 165.964);
--chart-4: oklch(0.396 0.044 243.885);
--chart-5: oklch(0.698 0.114 245.147);
}