Dainty Dark is a shadcn/ui theme built around a vivid blue primary color (#8099f4) with deep blue accents (#2e3866). The light mode uses a blue-tinted background (#161b31). Dark mode keeps the vivid blue primary (#8099f4) on a blue-tinted background (#161b31).
| Token | Light | Dark |
|---|---|---|
| Background | #161b31black | #161b31black |
| Foreground | #d9daedgainsboro | #d9daedgainsboro |
| Card | #13172ablack | #13172ablack |
| Card foreground | #eaebf5lavender | #eaebf5lavender |
| Popover | #111527black | #111527black |
| Popover foreground | #fcfcfdwhite | #fcfcfdwhite |
| Primary | #8099f4cornflowerblue | #8099f4cornflowerblue |
| Primary foreground | #05113dmidnightblue | #05113dmidnightblue |
| Secondary | #2d3553darkslategray | #2d3553darkslategray |
| Secondary foreground | #cdd2e4lightgrey | #cdd2e4lightgrey |
| Muted | #282a33darkslategray | #282a33darkslategray |
| Muted foreground | #a4a7b7darkgray | #a4a7b7darkgray |
| Accent | #2e3866darkslategray | #2e3866darkslategray |
| Accent foreground | #d8dceegainsboro | #d8dceegainsboro |
| Destructive | #eb2e24crimson | #eb2e24crimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #23283edarkslategray | #23283edarkslategray |
| Input | #282e48darkslategray | #282e48darkslategray |
| Ring | #8099f4cornflowerblue | #8099f4cornflowerblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 12.28:1 | AAA |
| Text on card | 14.92:1 | AAA |
| Primary button | 6.76:1 | AA |
| Secondary button | 7.99:1 | AAA |
| Muted text | 5.94:1 | AA |
| Accent | 8.20:1 | AAA |
| Destructive | 4.25:1 | AA Large |
| Text on background | 12.28:1 | AAA |
| Text on card | 14.92:1 | AAA |
| Primary button | 6.76:1 | AA |
| Secondary button | 7.99:1 | AAA |
| Muted text | 5.94:1 | AA |
| Accent | 8.20:1 | AAA |
| Destructive | 4.25: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.23 0.044 272.948);
--foreground: oklch(0.894 0.025 283.466);
--muted: oklch(0.288 0.017 275.336);
--muted-foreground: oklch(0.731 0.023 275.727);
--popover: oklch(0.203 0.035 273.249);
--popover-foreground: oklch(0.99 0.002 283.932);
--card: oklch(0.212 0.038 273.138);
--card-foreground: oklch(0.942 0.014 283.718);
--border: oklch(0.282 0.041 273.782);
--input: oklch(0.309 0.047 273.684);
--primary: oklch(0.704 0.136 270.877);
--primary-foreground: oklch(0.204 0.085 265.985);
--secondary: oklch(0.336 0.054 271.451);
--secondary-foreground: oklch(0.866 0.025 273.514);
--accent: oklch(0.356 0.081 272.194);
--accent-foreground: oklch(0.897 0.024 275.8);
--destructive: oklch(0.608 0.224 28.899);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.704 0.136 270.877);
--chart-1: oklch(0.704 0.136 270.877);
--chart-2: oklch(0.336 0.054 271.451);
--chart-3: oklch(0.356 0.081 272.194);
--chart-4: oklch(0.361 0.06 271.388);
--chart-5: oklch(0.701 0.141 270.734);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.23 0.044 272.948);
--foreground: oklch(0.894 0.025 283.466);
--muted: oklch(0.288 0.017 275.336);
--muted-foreground: oklch(0.731 0.023 275.727);
--popover: oklch(0.203 0.035 273.249);
--popover-foreground: oklch(0.99 0.002 283.932);
--card: oklch(0.212 0.038 273.138);
--card-foreground: oklch(0.942 0.014 283.718);
--border: oklch(0.282 0.041 273.782);
--input: oklch(0.309 0.047 273.684);
--primary: oklch(0.704 0.136 270.877);
--primary-foreground: oklch(0.204 0.085 265.985);
--secondary: oklch(0.336 0.054 271.451);
--secondary-foreground: oklch(0.866 0.025 273.514);
--accent: oklch(0.356 0.081 272.194);
--accent-foreground: oklch(0.897 0.024 275.8);
--destructive: oklch(0.608 0.224 28.899);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.704 0.136 270.877);
--chart-1: oklch(0.704 0.136 270.877);
--chart-2: oklch(0.336 0.054 271.451);
--chart-3: oklch(0.356 0.081 272.194);
--chart-4: oklch(0.361 0.06 271.388);
--chart-5: oklch(0.701 0.141 270.734);
}