Dazzling is a shadcn/ui theme built around a violet primary color (#a86ad7) with purple accents (#d76ad0). The light mode uses a neutral background (#faf8fc). Dark mode keeps the violet primary (#a86ad7) on a neutral background (#030203).
| Token | Light | Dark |
|---|---|---|
| Background | #faf8fcghostwhite | #030203black |
| Foreground | #030104black | #f8f6f9whitesmoke |
| Card | #f8f5fawhitesmoke | #050407black |
| Card foreground | #000000black | #faf9fbghostwhite |
| Popover | #faf8fcghostwhite | #030203black |
| Popover foreground | #030104black | #f8f6f9whitesmoke |
| Primary | #a86ad7mediumpurple | #a86ad7mediumpurple |
| Primary foreground | #000000black | #000000black |
| Secondary | #716ad7slateblue | #716ad7slateblue |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #d6d4e7gainsboro | #19182bblack |
| Muted foreground | #4b495fdarkslategray | #a1a0b6darkgray |
| Accent | #d76ad0orchid | #d76ad0orchid |
| Accent foreground | #0c030bblack | #0c030bblack |
| Destructive | #c7140afirebrick | #f4392fcrimson |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a86ad7mediumpurple | #a86ad7mediumpurple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.70:1 | AAA |
| Text on card | 19.36:1 | AAA |
| Primary button | 5.70:1 | AA |
| Secondary button | 4.42:1 | AA Large |
| Muted text | 5.97:1 | AA |
| Accent | 6.64:1 | AA |
| Destructive | 5.96:1 | AA |
| Text on background | 19.29:1 | AAA |
| Text on card | 19.51:1 | AAA |
| Primary button | 5.70:1 | AA |
| Secondary button | 4.42:1 | AA Large |
| Muted text | 6.83:1 | AA |
| Accent | 6.64:1 | AA |
| Destructive | 3.84:1 | AA Large |
Paste this into your globals.css to use Dazzling in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.005 311.036);
--foreground: oklch(0.08 0.02 313.139);
--muted: oklch(0.877 0.026 288.909);
--muted-foreground: oklch(0.416 0.036 287.768);
--popover: oklch(0.982 0.005 311.036);
--popover-foreground: oklch(0.08 0.02 313.139);
--card: oklch(0.973 0.008 311.011);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.636 0.168 308.53);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.585 0.162 283.166);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.688 0.184 329.912);
--accent-foreground: oklch(0.124 0.029 329.135);
--destructive: oklch(0.526 0.208 29.458);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.636 0.168 308.53);
--chart-1: oklch(0.636 0.168 308.53);
--chart-2: oklch(0.585 0.162 283.166);
--chart-3: oklch(0.688 0.184 329.912);
--chart-4: oklch(0.618 0.148 284.19);
--chart-5: oklch(0.634 0.176 308.359);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.087 0.009 311.964);
--foreground: oklch(0.975 0.005 311.043);
--muted: oklch(0.219 0.037 285.933);
--muted-foreground: oklch(0.714 0.032 288.632);
--popover: oklch(0.087 0.009 311.964);
--popover-foreground: oklch(0.975 0.005 311.043);
--card: oklch(0.109 0.012 311.964);
--card-foreground: oklch(0.983 0.003 311.057);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.636 0.168 308.53);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.585 0.162 283.166);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.688 0.184 329.912);
--accent-foreground: oklch(0.124 0.029 329.135);
--destructive: oklch(0.633 0.224 28.506);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.636 0.168 308.53);
--chart-1: oklch(0.636 0.168 308.53);
--chart-2: oklch(0.585 0.162 283.166);
--chart-3: oklch(0.688 0.184 329.912);
--chart-4: oklch(0.618 0.148 284.19);
--chart-5: oklch(0.634 0.176 308.359);
}