Dainty – Prettier is a shadcn/ui theme built around a vivid blue primary color (#33a0ff) with blue accents (#335466). The light mode uses a blue-tinted background (#1a2a33). Dark mode keeps the vivid blue primary (#33a0ff) on a blue-tinted background (#1a2a33).
| Token | Light | Dark |
|---|---|---|
| Background | #1a2a33darkslategray | #1a2a33darkslategray |
| Foreground | #dadfe2gainsboro | #dadfe2gainsboro |
| Card | #16242cdarkslategray | #16242cdarkslategray |
| Card foreground | #e8ebedlavender | #e8ebedlavender |
| Popover | #152229black | #152229black |
| Popover foreground | #f6f8f8whitesmoke | #f6f8f8whitesmoke |
| Primary | #33a0ffdodgerblue | #33a0ffdodgerblue |
| Primary foreground | #000000black | #000000black |
| Secondary | #2d4153darkslategray | #2d4153darkslategray |
| Secondary foreground | #cddae4gainsboro | #cddae4gainsboro |
| Muted | #2b3236darkslategray | #2b3236darkslategray |
| Muted foreground | #a6b3b9darkgray | #a6b3b9darkgray |
| Accent | #335466darkslategray | #335466darkslategray |
| Accent foreground | #dde8eelavender | #dde8eelavender |
| Destructive | #e01806red | #e01806red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #27373fdarkslategray | #27373fdarkslategray |
| Input | #2d3f48darkslategray | #2d3f48darkslategray |
| Ring | #33a0ffdodgerblue | #33a0ffdodgerblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 10.99:1 | AAA |
| Text on card | 13.19:1 | AAA |
| Primary button | 7.59:1 | AAA |
| Secondary button | 7.40:1 | AAA |
| Muted text | 6.05:1 | AA |
| Accent | 6.47:1 | AA |
| Destructive | 4.89:1 | AA |
| Text on background | 10.99:1 | AAA |
| Text on card | 13.19:1 | AAA |
| Primary button | 7.59:1 | AAA |
| Secondary button | 7.40:1 | AAA |
| Muted text | 6.05:1 | AA |
| Accent | 6.47:1 | AA |
| Destructive | 4.89:1 | AA |
Paste this into your globals.css to use Dainty – Prettier in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.275 0.027 232.621);
--foreground: oklch(0.9 0.007 234.614);
--muted: oklch(0.312 0.013 231.28);
--muted-foreground: oklch(0.759 0.017 230.975);
--popover: oklch(0.242 0.023 232.46);
--popover-foreground: oklch(0.977 0.002 234.529);
--card: oklch(0.253 0.024 232.519);
--card-foreground: oklch(0.939 0.004 234.569);
--border: oklch(0.325 0.025 232.009);
--input: oklch(0.355 0.028 232.058);
--primary: oklch(0.69 0.17 249.585);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.366 0.04 245.608);
--secondary-foreground: oklch(0.881 0.02 244.369);
--accent: oklch(0.428 0.048 233.04);
--accent-foreground: oklch(0.925 0.014 230.874);
--destructive: oklch(0.575 0.227 30.041);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.69 0.17 249.585);
--chart-1: oklch(0.69 0.17 249.585);
--chart-2: oklch(0.366 0.04 245.608);
--chart-3: oklch(0.428 0.048 233.04);
--chart-4: oklch(0.395 0.044 245.645);
--chart-5: oklch(0.692 0.174 249.85);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.275 0.027 232.621);
--foreground: oklch(0.9 0.007 234.614);
--muted: oklch(0.312 0.013 231.28);
--muted-foreground: oklch(0.759 0.017 230.975);
--popover: oklch(0.242 0.023 232.46);
--popover-foreground: oklch(0.977 0.002 234.529);
--card: oklch(0.253 0.024 232.519);
--card-foreground: oklch(0.939 0.004 234.569);
--border: oklch(0.325 0.025 232.009);
--input: oklch(0.355 0.028 232.058);
--primary: oklch(0.69 0.17 249.585);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.366 0.04 245.608);
--secondary-foreground: oklch(0.881 0.02 244.369);
--accent: oklch(0.428 0.048 233.04);
--accent-foreground: oklch(0.925 0.014 230.874);
--destructive: oklch(0.575 0.227 30.041);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.69 0.17 249.585);
--chart-1: oklch(0.69 0.17 249.585);
--chart-2: oklch(0.366 0.04 245.608);
--chart-3: oklch(0.428 0.048 233.04);
--chart-4: oklch(0.395 0.044 245.645);
--chart-5: oklch(0.692 0.174 249.85);
}