Wrong is a shadcn/ui theme built around a vivid light violet primary color (#d9b3ff) with vivid light purple accents (#ffb3ff). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid light violet primary (#d9b3ff) on a neutral background (#050208).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #050208black |
| Foreground | #000000black | #faf9fbghostwhite |
| Card | #ffffffwhite | #050208black |
| Card foreground | #000000black | #faf9fbghostwhite |
| Popover | #ffffffwhite | #050208black |
| Popover foreground | #000000black | #faf9fbghostwhite |
| Primary | #d9b3ffplum | #d9b3ffplum |
| Primary foreground | #400080indigo | #400080indigo |
| Secondary | #b3b3fflightsteelblue | #b3b3fflightsteelblue |
| Secondary foreground | #000080navy | #000080navy |
| Muted | #d5d5dclightgrey | #23232adarkslategray |
| Muted foreground | #595959dimgray | #a6a6a6darkgray |
| Accent | #ffb3ffplum | #ffb3ffplum |
| Accent foreground | #1a001ablack | #1a001ablack |
| Destructive | #812304maroon | #f74408orangered |
| Destructive foreground | #fdcbbapeachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d9b3ffplum | #d9b3ffplum |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 7.71:1 | AAA |
| Secondary button | 8.20:1 | AAA |
| Muted text | 4.81:1 | AA |
| Accent | 12.37:1 | AAA |
| Destructive | 6.64:1 | AA |
| Text on background | 19.62:1 | AAA |
| Text on card | 19.62:1 | AAA |
| Primary button | 7.71:1 | AAA |
| Secondary button | 8.20:1 | AAA |
| Muted text | 6.42:1 | AA |
| Accent | 12.37:1 | AAA |
| Destructive | 3.62:1 | AA Large |
Paste this into your globals.css to use Wrong in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.876 0.009 286.204);
--muted-foreground: oklch(0.465 0 180);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(1 0 180);
--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.825 0.112 306.93);
--primary-foreground: oklch(0.321 0.176 295.832);
--secondary: oklch(0.794 0.108 283.668);
--secondary-foreground: oklch(0.27 0.187 264.052);
--accent: oklch(0.862 0.132 326.643);
--accent-foreground: oklch(0.151 0.07 328.363);
--destructive: oklch(0.403 0.133 36.375);
--destructive-foreground: oklch(0.88 0.062 39.245);
--ring: oklch(0.825 0.112 306.93);
--chart-1: oklch(0.825 0.112 306.93);
--chart-2: oklch(0.794 0.108 283.668);
--chart-3: oklch(0.862 0.132 326.643);
--chart-4: oklch(0.835 0.085 284.401);
--chart-5: oklch(0.824 0.116 306.878);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.102 0.023 310.11);
--foreground: oklch(0.983 0.003 308.428);
--muted: oklch(0.258 0.013 285.468);
--muted-foreground: oklch(0.724 0 180);
--popover: oklch(0.102 0.023 310.11);
--popover-foreground: oklch(0.983 0.003 308.428);
--card: oklch(0.102 0.023 310.11);
--card-foreground: oklch(0.983 0.003 308.428);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.825 0.112 306.93);
--primary-foreground: oklch(0.321 0.176 295.832);
--secondary: oklch(0.794 0.108 283.668);
--secondary-foreground: oklch(0.27 0.187 264.052);
--accent: oklch(0.862 0.132 326.643);
--accent-foreground: oklch(0.151 0.07 328.363);
--destructive: oklch(0.646 0.223 35.137);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.825 0.112 306.93);
--chart-1: oklch(0.825 0.112 306.93);
--chart-2: oklch(0.794 0.108 283.668);
--chart-3: oklch(0.862 0.132 326.643);
--chart-4: oklch(0.835 0.085 284.401);
--chart-5: oklch(0.824 0.116 306.878);
}