Dazzling is a shadcn/ui theme built around a vivid pink primary color (#fa2e7c) with muted pink accents (#cba4b3). The light mode uses a neutral background (#fefbfc). Dark mode keeps the vivid pink primary (#fa2e7c) on a pink-tinted background (#0e0609).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfcsnow | #0e0609black |
| Foreground | #040102black | #ffffffwhite |
| Card | #fefbfcsnow | #0e0609black |
| Card foreground | #040102black | #ffffffwhite |
| Popover | #fefbfcsnow | #0e0609black |
| Popover foreground | #040102black | #ffffffwhite |
| Primary | #fa2e7cdeeppink | #fa2e7cdeeppink |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #d7c6cdthistle | #252223black |
| Secondary foreground | #3f2c33darkslategray | #c0b9bcsilver |
| Muted | #e3d9ddgainsboro | #261c20black |
| Muted foreground | #5a444cdarkslategray | #bba5addarkgray |
| Accent | #cba4b3silver | #372a2fdarkslategray |
| Accent foreground | #27161dblack | #d1c2c8thistle |
| Destructive | #892706saddlebrown | #f65723tomato |
| Destructive foreground | #fdd2c4peachpuff | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #fa2e7cdeeppink | #fa2e7cdeeppink |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.23:1 | AAA |
| Text on card | 20.23:1 | AAA |
| Primary button | 3.66:1 | AA Large |
| Secondary button | 7.94:1 | AAA |
| Muted text | 6.42:1 | AA |
| Accent | 7.81:1 | AAA |
| Destructive | 6.45:1 | AA |
| Text on background | 20.00:1 | AAA |
| Text on card | 20.00:1 | AAA |
| Primary button | 3.66:1 | AA Large |
| Secondary button | 8.18:1 | AAA |
| Muted text | 7.16:1 | AAA |
| Accent | 8.00:1 | AAA |
| Destructive | 6.31:1 | AA |
Paste this into your globals.css to use Dazzling in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 351.669);
--foreground: oklch(0.082 0.02 351.093);
--muted: oklch(0.894 0.013 351.998);
--muted-foreground: oklch(0.413 0.033 353.762);
--popover: oklch(0.991 0.003 351.669);
--popover-foreground: oklch(0.082 0.02 351.093);
--card: oklch(0.991 0.003 351.669);
--card-foreground: oklch(0.082 0.02 351.093);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.65 0.237 4.785);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.843 0.02 352.267);
--secondary-foreground: oklch(0.319 0.029 354.057);
--accent: oklch(0.759 0.049 353.368);
--accent-foreground: oklch(0.226 0.029 355.007);
--destructive: oklch(0.423 0.139 36.329);
--destructive-foreground: oklch(0.897 0.051 39.268);
--ring: oklch(0.65 0.237 4.785);
--chart-1: oklch(0.65 0.237 4.785);
--chart-2: oklch(0.843 0.02 352.267);
--chart-3: oklch(0.759 0.049 353.368);
--chart-4: oklch(0.868 0.017 352.141);
--chart-5: oklch(0.653 0.242 5.289);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.138 0.017 352.728);
--foreground: oklch(1 0 180);
--muted: oklch(0.24 0.018 353.642);
--muted-foreground: oklch(0.743 0.028 352.647);
--popover: oklch(0.138 0.017 352.728);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.138 0.017 352.728);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.65 0.237 4.785);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.256 0.006 352.241);
--secondary-foreground: oklch(0.793 0.008 351.887);
--accent: oklch(0.301 0.022 353.571);
--accent-foreground: oklch(0.828 0.019 352.221);
--destructive: oklch(0.665 0.203 37.254);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.65 0.237 4.785);
--chart-1: oklch(0.65 0.237 4.785);
--chart-2: oklch(0.256 0.006 352.241);
--chart-3: oklch(0.301 0.022 353.571);
--chart-4: oklch(0.287 0.007 352.275);
--chart-5: oklch(0.653 0.242 5.289);
}