Wonderful is a shadcn/ui theme built around a neutral gray primary color (#868583) with neutral gray accents (#858386). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#868583) on a neutral background (#040301).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040301black |
| Foreground | #130d06black | #fcfaf8snow |
| Card | #fcfcfcsnow | #080502black |
| Card foreground | #0f0b05black | #fdfdfcwhite |
| Popover | #ffffffwhite | #040301black |
| Popover foreground | #130d06black | #fcfaf8snow |
| Primary | #868583gray | #868583gray |
| Primary foreground | #000000black | #000000black |
| Secondary | #838685gray | #838685gray |
| Secondary foreground | #000000black | #000000black |
| Muted | #dbebe3gainsboro | #14241dblack |
| Muted foreground | #57605cdimgray | #9fa8a4darkgray |
| Accent | #858386gray | #858386gray |
| Accent foreground | #000000black | #000000black |
| Destructive | #b34914sienna | #e97135tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #868583gray | #868583gray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.30:1 | AAA |
| Text on card | 19.19:1 | AAA |
| Primary button | 5.67:1 | AA |
| Secondary button | 5.70:1 | AA |
| Muted text | 5.25:1 | AA |
| Accent | 5.60:1 | AA |
| Destructive | 5.41:1 | AA |
| Text on background | 19.82:1 | AAA |
| Text on card | 19.94:1 | AAA |
| Primary button | 5.67:1 | AA |
| Secondary button | 5.70:1 | AA |
| Muted text | 6.63:1 | AA |
| Accent | 5.60:1 | AA |
| Destructive | 6.85:1 | AA |
Paste this into your globals.css to use Wonderful in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.165 0.017 71.79);
--muted: oklch(0.926 0.019 166.328);
--muted-foreground: oklch(0.481 0.013 166.136);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.165 0.017 71.79);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.151 0.015 74.524);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.616 0.002 71.417);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.617 0.003 166.759);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.613 0.004 309.721);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.539 0.151 42.578);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.616 0.002 71.417);
--chart-1: oklch(0.616 0.002 71.417);
--chart-2: oklch(0.617 0.003 166.759);
--chart-3: oklch(0.613 0.004 309.721);
--chart-4: oklch(0.642 0.003 166.775);
--chart-5: oklch(0.619 0.01 71.313);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.095 0.011 79.627);
--foreground: oklch(0.986 0.003 71.424);
--muted: oklch(0.243 0.026 163.591);
--muted-foreground: oklch(0.722 0.012 166.447);
--popover: oklch(0.095 0.011 79.627);
--popover-foreground: oklch(0.986 0.003 71.424);
--card: oklch(0.12 0.014 79.627);
--card-foreground: oklch(0.993 0.002 71.437);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.616 0.002 71.417);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.617 0.003 166.759);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.613 0.004 309.721);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.68 0.165 44.643);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.616 0.002 71.417);
--chart-1: oklch(0.616 0.002 71.417);
--chart-2: oklch(0.617 0.003 166.759);
--chart-3: oklch(0.613 0.004 309.721);
--chart-4: oklch(0.642 0.003 166.775);
--chart-5: oklch(0.619 0.01 71.313);
}