Dazzling is a shadcn/ui theme built around a vivid light blue primary color (#aac3fd) with vivid light indigo accents (#bbaafd). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light blue primary (#aac3fd) on a neutral background (#030407).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030407black |
| Foreground | #03060cblack | #f9fafbghostwhite |
| Card | #ffffffwhite | #030407black |
| Card foreground | #03060cblack | #f9fafbghostwhite |
| Popover | #ffffffwhite | #030407black |
| Popover foreground | #03060cblack | #f9fafbghostwhite |
| Primary | #aac3fdlightblue | #aac3fdlightblue |
| Primary foreground | #032472midnightblue | #032472midnightblue |
| Secondary | #aaecfdpaleturquoise | #aaecfdpaleturquoise |
| Secondary foreground | #000c0fblack | #000c0fblack |
| Muted | #d6e2e5gainsboro | #1a2629darkslategray |
| Muted foreground | #565f61dimgray | #9ea7a9darkgray |
| Accent | #bbaafdlightsteelblue | #bbaafdlightsteelblue |
| Accent foreground | #190372midnightblue | #190372midnightblue |
| Destructive | #cf3307firebrick | #f6400eorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #aac3fdlightblue | #aac3fdlightblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.28:1 | AAA |
| Text on card | 20.28:1 | AAA |
| Primary button | 7.97:1 | AAA |
| Secondary button | 15.26:1 | AAA |
| Muted text | 4.96:1 | AA |
| Accent | 7.94:1 | AAA |
| Destructive | 5.10:1 | AA |
| Text on background | 19.59:1 | AAA |
| Text on card | 19.59:1 | AAA |
| Primary button | 7.97:1 | AAA |
| Secondary button | 15.26:1 | AAA |
| Muted text | 6.34:1 | AA |
| Accent | 7.94:1 | AAA |
| Destructive | 3.70:1 | AA Large |
Paste this into your globals.css to use Dazzling in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.121 0.016 260.054);
--muted: oklch(0.906 0.014 214.364);
--muted-foreground: oklch(0.479 0.012 214.406);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.121 0.016 260.054);
--card: oklch(1 0 180);
--card-foreground: oklch(0.121 0.016 260.054);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.82 0.086 266.513);
--primary-foreground: oklch(0.302 0.139 262.805);
--secondary: oklch(0.906 0.07 214.95);
--secondary-foreground: oklch(0.142 0.024 210.58);
--accent: oklch(0.784 0.116 292.685);
--accent-foreground: oklch(0.266 0.164 274.815);
--destructive: oklch(0.561 0.198 34.007);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.82 0.086 266.513);
--chart-1: oklch(0.82 0.086 266.513);
--chart-2: oklch(0.906 0.07 214.95);
--chart-3: oklch(0.784 0.116 292.685);
--chart-4: oklch(0.921 0.058 214.747);
--chart-5: oklch(0.818 0.089 266.475);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.109 0.01 262.041);
--foreground: oklch(0.984 0.001 267.413);
--muted: oklch(0.257 0.018 214.831);
--muted-foreground: oklch(0.72 0.011 214.362);
--popover: oklch(0.109 0.01 262.041);
--popover-foreground: oklch(0.984 0.001 267.413);
--card: oklch(0.109 0.01 262.041);
--card-foreground: oklch(0.984 0.001 267.413);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.82 0.086 266.513);
--primary-foreground: oklch(0.302 0.139 262.805);
--secondary: oklch(0.906 0.07 214.95);
--secondary-foreground: oklch(0.142 0.024 210.58);
--accent: oklch(0.784 0.116 292.685);
--accent-foreground: oklch(0.266 0.164 274.815);
--destructive: oklch(0.641 0.224 34.175);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.82 0.086 266.513);
--chart-1: oklch(0.82 0.086 266.513);
--chart-2: oklch(0.906 0.07 214.95);
--chart-3: oklch(0.784 0.116 292.685);
--chart-4: oklch(0.921 0.058 214.747);
--chart-5: oklch(0.818 0.089 266.475);
}