Wonderful is a shadcn/ui theme built around a deep purple primary color (#622754) with deep red accents (#622736). The light mode uses a neutral background (#fefbfd). Dark mode keeps the deep purple primary (#622754) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfdsnow | #000000black |
| Foreground | #10040dblack | #fdfcfdwhite |
| Card | #fdf7fbsnow | #030303black |
| Card foreground | #0c030ablack | #ffffffwhite |
| Popover | #fefbfdsnow | #000000black |
| Popover foreground | #10040dblack | #fdfcfdwhite |
| Primary | #622754indigo | #622754indigo |
| Primary foreground | #ecd0e5gainsboro | #ecd0e5gainsboro |
| Secondary | #542762darkslateblue | #542762darkslateblue |
| Secondary foreground | #e5d0ecgainsboro | #e5d0ecgainsboro |
| Muted | #e7dceagainsboro | #201523black |
| Muted foreground | #544559darkslategray | #b5a6badarkgray |
| Accent | #622736saddlebrown | #622736saddlebrown |
| Accent foreground | #ecd0d7gainsboro | #ecd0d7gainsboro |
| Destructive | #a23d06saddlebrown | #e75608orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #622754indigo | #622754indigo |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.54:1 | AAA |
| Text on card | 19.23:1 | AAA |
| Primary button | 7.56:1 | AAA |
| Secondary button | 7.89:1 | AAA |
| Muted text | 6.64:1 | AA |
| Accent | 7.78:1 | AAA |
| Destructive | 6.54:1 | AA |
| Text on background | 20.51:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 7.56:1 | AAA |
| Secondary button | 7.89:1 | AAA |
| Muted text | 7.66:1 | AAA |
| Accent | 7.78:1 | AAA |
| Destructive | 3.64:1 | AA Large |
Paste this into your globals.css to use Wonderful in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.004 333.95);
--foreground: oklch(0.136 0.033 336.261);
--muted: oklch(0.906 0.023 317.722);
--muted-foreground: oklch(0.413 0.039 317.606);
--popover: oklch(0.991 0.004 333.95);
--popover-foreground: oklch(0.136 0.033 336.261);
--card: oklch(0.982 0.009 334.024);
--card-foreground: oklch(0.122 0.029 335.093);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.375 0.104 338.214);
--primary-foreground: oklch(0.886 0.042 334.662);
--secondary: oklch(0.362 0.109 316.963);
--secondary-foreground: oklch(0.883 0.045 317.68);
--accent: oklch(0.363 0.087 6.86);
--accent-foreground: oklch(0.882 0.033 0.906);
--destructive: oklch(0.495 0.146 41.997);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.375 0.104 338.214);
--chart-1: oklch(0.375 0.104 338.214);
--chart-2: oklch(0.362 0.109 316.963);
--chart-3: oklch(0.363 0.087 6.86);
--chart-4: oklch(0.388 0.118 316.938);
--chart-5: oklch(0.376 0.11 338.488);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.992 0.001 333.902);
--muted: oklch(0.216 0.032 317.495);
--muted-foreground: oklch(0.744 0.034 317.689);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.992 0.001 333.902);
--card: oklch(0.092 0 180);
--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.375 0.104 338.214);
--primary-foreground: oklch(0.886 0.042 334.662);
--secondary: oklch(0.362 0.109 316.963);
--secondary-foreground: oklch(0.883 0.045 317.68);
--accent: oklch(0.363 0.087 6.86);
--accent-foreground: oklch(0.882 0.033 0.906);
--destructive: oklch(0.64 0.193 41.185);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.375 0.104 338.214);
--chart-1: oklch(0.375 0.104 338.214);
--chart-2: oklch(0.362 0.109 316.963);
--chart-3: oklch(0.363 0.087 6.86);
--chart-4: oklch(0.388 0.118 316.938);
--chart-5: oklch(0.376 0.11 338.488);
}