Dazzling is a shadcn/ui theme built around a yellow primary color (#deb44a) with violet accents (#b44ade). The light mode uses a neutral background (#fdfbf7). Dark mode keeps the yellow primary (#deb44a) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbf7snow | #000000black |
| Foreground | #0c0a03black | #faf8f5whitesmoke |
| Card | #fcf9f3floralwhite | #030303black |
| Card foreground | #080602black | #fcfbf8snow |
| Popover | #fdfbf7snow | #000000black |
| Popover foreground | #0c0a03black | #faf8f5whitesmoke |
| Primary | #deb44asandybrown | #deb44asandybrown |
| Primary foreground | #000000black | #000000black |
| Secondary | #4adeb4mediumturquoise | #4adeb4mediumturquoise |
| Secondary foreground | #000000black | #000000black |
| Muted | #e9edeblavender | #121615black |
| Muted foreground | #414443darkslategray | #bbbebdsilver |
| Accent | #b44ademediumorchid | #b44ademediumorchid |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #6d0503maroon | #f93734crimson |
| Destructive foreground | #fca7a6lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #deb44asandybrown | #deb44asandybrown |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.17:1 | AAA |
| Text on card | 19.28:1 | AAA |
| Primary button | 10.72:1 | AAA |
| Secondary button | 12.37:1 | AAA |
| Muted text | 8.31:1 | AAA |
| Accent | 4.22:1 | AA Large |
| Destructive | 6.70:1 | AA |
| Text on background | 19.81:1 | AAA |
| Text on card | 19.98:1 | AAA |
| Primary button | 10.72:1 | AAA |
| Secondary button | 12.37:1 | AAA |
| Muted text | 9.70:1 | AAA |
| Accent | 4.22:1 | AA Large |
| Destructive | 3.73:1 | AA Large |
Paste this into your globals.css to use Dazzling in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.006 88.829);
--foreground: oklch(0.143 0.017 93.604);
--muted: oklch(0.942 0.005 177.572);
--muted-foreground: oklch(0.382 0.004 177.428);
--popover: oklch(0.989 0.006 88.829);
--popover-foreground: oklch(0.143 0.017 93.604);
--card: oklch(0.983 0.009 88.848);
--card-foreground: oklch(0.125 0.015 94.207);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.788 0.131 87.169);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.811 0.139 170.219);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.612 0.225 314.822);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.339 0.134 29.058);
--destructive-foreground: oklch(0.812 0.101 20.568);
--ring: oklch(0.788 0.131 87.169);
--chart-1: oklch(0.788 0.131 87.169);
--chart-2: oklch(0.811 0.139 170.219);
--chart-3: oklch(0.612 0.225 314.822);
--chart-4: oklch(0.822 0.132 171.036);
--chart-5: oklch(0.793 0.135 86.944);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.981 0.005 88.824);
--muted: oklch(0.197 0.007 176.696);
--muted-foreground: oklch(0.799 0.003 177.601);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.981 0.005 88.824);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.987 0.003 88.813);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.788 0.131 87.169);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.811 0.139 170.219);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.612 0.225 314.822);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.641 0.228 27.249);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.788 0.131 87.169);
--chart-1: oklch(0.788 0.131 87.169);
--chart-2: oklch(0.811 0.139 170.219);
--chart-3: oklch(0.612 0.225 314.822);
--chart-4: oklch(0.822 0.132 171.036);
--chart-5: oklch(0.793 0.135 86.944);
}