Whopping is a shadcn/ui theme built around a vivid deep purple primary color (#670e4f) with muted purple accents (#caaac2). The light mode uses a neutral background (#fefbfd). Dark mode keeps the vivid deep purple primary (#670e4f) on a neutral background (#040103).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfdsnow | #040103black |
| Foreground | #000000black | #fdfcfdwhite |
| Card | #fefbfdsnow | #040103black |
| Card foreground | #000000black | #fdfcfdwhite |
| Popover | #fefbfdsnow | #040103black |
| Popover foreground | #000000black | #fdfcfdwhite |
| Primary | #670e4fpurple | #670e4fpurple |
| Primary foreground | #f5b3e3pink | #f5b3e3pink |
| Secondary | #d4c4d0thistle | #322a30darkslategray |
| Secondary foreground | #3b2b37darkslategray | #cbc2c9silver |
| Muted | #e9e7e9lavender | #181618black |
| Muted foreground | #443b42darkslategray | #c4bbc1silver |
| Accent | #caaac2silver | #4a3645darkslategray |
| Accent foreground | #291a25black | #dfd3dcgainsboro |
| Destructive | #d50801red | #fe0a01red |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #670e4fpurple | #670e4fpurple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.40:1 | AAA |
| Text on card | 20.40:1 | AAA |
| Primary button | 7.08:1 | AAA |
| Secondary button | 7.95:1 | AAA |
| Muted text | 8.74:1 | AAA |
| Accent | 7.92:1 | AAA |
| Destructive | 5.42:1 | AA |
| Text on background | 20.27:1 | AAA |
| Text on card | 20.27:1 | AAA |
| Primary button | 7.08:1 | AAA |
| Secondary button | 8.01:1 | AAA |
| Muted text | 9.64:1 | AAA |
| Accent | 7.64:1 | AAA |
| Destructive | 4.00:1 | AA Large |
Paste this into your globals.css to use Whopping in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.005 334.614);
--foreground: oklch(0 0 0);
--muted: oklch(0.93 0.004 334.603);
--muted-foreground: oklch(0.365 0.016 335.294);
--popover: oklch(0.991 0.005 334.614);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.991 0.005 334.614);
--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.354 0.139 341.859);
--primary-foreground: oklch(0.841 0.098 336.448);
--secondary: oklch(0.837 0.023 334.998);
--secondary-foreground: oklch(0.312 0.029 336.084);
--accent: oklch(0.774 0.048 335.581);
--accent-foreground: oklch(0.24 0.031 336.647);
--destructive: oklch(0.55 0.223 29.517);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.354 0.139 341.859);
--chart-1: oklch(0.354 0.139 341.859);
--chart-2: oklch(0.837 0.023 334.998);
--chart-3: oklch(0.774 0.048 335.581);
--chart-4: oklch(0.862 0.019 334.914);
--chart-5: oklch(0.357 0.142 342.121);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.086 0.015 335.075);
--foreground: oklch(0.992 0.001 334.551);
--muted: oklch(0.202 0.006 335.026);
--muted-foreground: oklch(0.801 0.013 334.819);
--popover: oklch(0.086 0.015 335.075);
--popover-foreground: oklch(0.992 0.001 334.551);
--card: oklch(0.086 0.015 335.075);
--card-foreground: oklch(0.992 0.001 334.551);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.354 0.139 341.859);
--primary-foreground: oklch(0.841 0.098 336.448);
--secondary: oklch(0.296 0.014 335.346);
--secondary-foreground: oklch(0.825 0.013 334.81);
--accent: oklch(0.36 0.038 336.258);
--accent-foreground: oklch(0.878 0.018 334.883);
--destructive: oklch(0.627 0.255 29.461);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.354 0.139 341.859);
--chart-1: oklch(0.354 0.139 341.859);
--chart-2: oklch(0.296 0.014 335.346);
--chart-3: oklch(0.36 0.038 336.258);
--chart-4: oklch(0.326 0.016 335.374);
--chart-5: oklch(0.357 0.142 342.121);
}