Dainty – Purple Haze is a shadcn/ui theme built around a vivid blue primary color (#007af5) with vivid deep indigo accents (#00046b). The light mode uses an indigo-tinted background (#00011f). Dark mode keeps the vivid blue primary (#007af5) on an indigo-tinted background (#00011f).
| Token | Light | Dark |
|---|---|---|
| Background | #00011fblack | #00011fblack |
| Foreground | #959eb1darkgray | #959eb1darkgray |
| Card | #000114black | #000114black |
| Card foreground | #a4abbcdarkgray | #a4abbcdarkgray |
| Popover | #00010fblack | #00010fblack |
| Popover foreground | #b3b9c7silver | #b3b9c7silver |
| Primary | #007af5dodgerblue | #007af5dodgerblue |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #acbfd2lightsteelblue | #acbfd2lightsteelblue |
| Secondary foreground | #1b2632darkslategray | #1b2632darkslategray |
| Muted | #22222bdarkslategray | #22222bdarkslategray |
| Muted foreground | #9b9cb0darkgray | #9b9cb0darkgray |
| Accent | #00046bnavy | #00046bnavy |
| Accent foreground | #9ea1fflightskyblue | #9ea1fflightskyblue |
| Destructive | #ec483ctomato | #ec483ctomato |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #030435black | #030435black |
| Input | #040644midnightblue | #040644midnightblue |
| Ring | #007af5dodgerblue | #007af5dodgerblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 7.62:1 | AAA |
| Text on card | 9.00:1 | AAA |
| Primary button | 4.10:1 | AA Large |
| Secondary button | 8.15:1 | AAA |
| Muted text | 5.84:1 | AA |
| Accent | 7.32:1 | AAA |
| Destructive | 3.78:1 | AA Large |
| Text on background | 7.62:1 | AAA |
| Text on card | 9.00:1 | AAA |
| Primary button | 4.10:1 | AA Large |
| Secondary button | 8.15:1 | AAA |
| Muted text | 5.84:1 | AA |
| Accent | 7.32:1 | AAA |
| Destructive | 3.78:1 | AA Large |
Paste this into your globals.css to use Dainty – Purple Haze in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.113 0.071 264.198);
--foreground: oklch(0.698 0.03 267.12);
--muted: oklch(0.255 0.017 283.596);
--muted-foreground: oklch(0.698 0.03 284.021);
--popover: oklch(0.082 0.05 264.137);
--popover-foreground: oklch(0.784 0.021 267.247);
--card: oklch(0.093 0.057 264.164);
--card-foreground: oklch(0.742 0.025 267.19);
--border: oklch(0.164 0.093 268.153);
--input: oklch(0.189 0.111 267.536);
--primary: oklch(0.596 0.205 256.151);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.797 0.034 248.258);
--secondary-foreground: oklch(0.264 0.027 248.879);
--accent: oklch(0.243 0.163 264.155);
--accent-foreground: oklch(0.745 0.134 281.116);
--destructive: oklch(0.634 0.202 28.337);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.596 0.205 256.151);
--chart-1: oklch(0.596 0.205 256.151);
--chart-2: oklch(0.797 0.034 248.258);
--chart-3: oklch(0.243 0.163 264.155);
--chart-4: oklch(0.822 0.03 248.193);
--chart-5: oklch(0.598 0.209 256.46);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.113 0.071 264.198);
--foreground: oklch(0.698 0.03 267.12);
--muted: oklch(0.255 0.017 283.596);
--muted-foreground: oklch(0.698 0.03 284.021);
--popover: oklch(0.082 0.05 264.137);
--popover-foreground: oklch(0.784 0.021 267.247);
--card: oklch(0.093 0.057 264.164);
--card-foreground: oklch(0.742 0.025 267.19);
--border: oklch(0.164 0.093 268.153);
--input: oklch(0.189 0.111 267.536);
--primary: oklch(0.596 0.205 256.151);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.797 0.034 248.258);
--secondary-foreground: oklch(0.264 0.027 248.879);
--accent: oklch(0.243 0.163 264.155);
--accent-foreground: oklch(0.745 0.134 281.116);
--destructive: oklch(0.634 0.202 28.337);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.596 0.205 256.151);
--chart-1: oklch(0.596 0.205 256.151);
--chart-2: oklch(0.797 0.034 248.258);
--chart-3: oklch(0.243 0.163 264.155);
--chart-4: oklch(0.822 0.03 248.193);
--chart-5: oklch(0.598 0.209 256.46);
}