Wonderful is a shadcn/ui theme built around a muted light violet primary color (#d6cede) with muted light green accents (#d6dece). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the muted light violet primary (#d6cede) on a violet-tinted background (#0a060f).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfbfewhite | #0a060fblack |
| Foreground | #020105black | #faf9fbghostwhite |
| Card | #fcfbfewhite | #0a060fblack |
| Card foreground | #020105black | #faf9fbghostwhite |
| Popover | #fcfbfewhite | #0a060fblack |
| Popover foreground | #020105black | #faf9fbghostwhite |
| Primary | #d6cedelightgrey | #d6cedelightgrey |
| Primary foreground | #3d3249darkslategray | #3d3249darkslategray |
| Secondary | #d6decelightgrey | #d6decelightgrey |
| Secondary foreground | #3e4932darkslategray | #3e4932darkslategray |
| Muted | #e3e9dcgainsboro | #1c2316black |
| Muted foreground | #474847darkslategray | #b8b8b7silver |
| Accent | #d6decelightgrey | #d6decelightgrey |
| Accent foreground | #3e4932darkslategray | #3e4932darkslategray |
| Destructive | #ca4f12chocolate | #ed7335tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d6cedelightgrey | #d6cedelightgrey |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.19:1 | AAA |
| Text on card | 20.19:1 | AAA |
| Primary button | 7.87:1 | AAA |
| Secondary button | 6.90:1 | AA |
| Muted text | 7.44:1 | AAA |
| Accent | 6.90:1 | AA |
| Destructive | 4.53:1 | AA |
| Text on background | 19.14:1 | AAA |
| Text on card | 19.14:1 | AAA |
| Primary button | 7.87:1 | AAA |
| Secondary button | 6.90:1 | AA |
| Muted text | 8.16:1 | AAA |
| Accent | 6.90:1 | AA |
| Destructive | 7.10:1 | AAA |
Paste this into your globals.css to use Wonderful in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.004 307.739);
--foreground: oklch(0.076 0.025 310.09);
--muted: oklch(0.927 0.018 128.024);
--muted-foreground: oklch(0.401 0.003 127.863);
--popover: oklch(0.99 0.004 307.739);
--popover-foreground: oklch(0.076 0.025 310.09);
--card: oklch(0.99 0.004 307.739);
--card-foreground: oklch(0.076 0.025 310.09);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.863 0.023 307.484);
--primary-foreground: oklch(0.338 0.043 306.301);
--secondary: oklch(0.89 0.022 128.086);
--secondary-foreground: oklch(0.388 0.04 129.1);
--accent: oklch(0.89 0.022 128.086);
--accent-foreground: oklch(0.388 0.04 129.1);
--destructive: oklch(0.584 0.169 41.773);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.863 0.023 307.484);
--chart-1: oklch(0.863 0.023 307.484);
--chart-2: oklch(0.89 0.022 128.086);
--chart-3: oklch(0.89 0.022 128.086);
--chart-4: oklch(0.911 0.018 128.023);
--chart-5: oklch(0.861 0.026 307.435);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.133 0.022 307.522);
--foreground: oklch(0.984 0.002 307.767);
--muted: oklch(0.243 0.025 129.09);
--muted-foreground: oklch(0.783 0.002 127.821);
--popover: oklch(0.133 0.022 307.522);
--popover-foreground: oklch(0.984 0.002 307.767);
--card: oklch(0.133 0.022 307.522);
--card-foreground: oklch(0.984 0.002 307.767);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.863 0.023 307.484);
--primary-foreground: oklch(0.338 0.043 306.301);
--secondary: oklch(0.89 0.022 128.086);
--secondary-foreground: oklch(0.388 0.04 129.1);
--accent: oklch(0.89 0.022 128.086);
--accent-foreground: oklch(0.388 0.04 129.1);
--destructive: oklch(0.69 0.169 44.565);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.863 0.023 307.484);
--chart-1: oklch(0.863 0.023 307.484);
--chart-2: oklch(0.89 0.022 128.086);
--chart-3: oklch(0.89 0.022 128.086);
--chart-4: oklch(0.911 0.018 128.023);
--chart-5: oklch(0.861 0.026 307.435);
}