Wrong is a shadcn/ui theme built around a vivid deep green primary color (#0a6121) with vivid deep purple accents (#610a4a). The light mode uses a neutral background (#fbfefc). Dark mode keeps the vivid deep green primary (#0a6121) on a green-tinted background (#070e08).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefcwhite | #070e08black |
| Foreground | #031608black | #f9fbf9mintcream |
| Card | #f8fcf9mintcream | #08110bblack |
| Card foreground | #021207black | #fcfdfcwhite |
| Popover | #f8fcf9mintcream | #08110bblack |
| Popover foreground | #021207black | #fcfdfcwhite |
| Primary | #0a6121darkgreen | #0a6121darkgreen |
| Primary foreground | #a7f6bcpalegreen | #a7f6bcpalegreen |
| Secondary | #610a4aindigo | #610a4aindigo |
| Secondary foreground | #f6a7e1plum | #f6a7e1plum |
| Muted | #e1d6degainsboro | #291e26black |
| Muted foreground | #6d5065dimgray | #af92a7darkgray |
| Accent | #610a4aindigo | #610a4aindigo |
| Accent foreground | #f6a7e1plum | #f6a7e1plum |
| Destructive | #621404maroon | #f64a28tomato |
| Destructive foreground | #fbad9dlightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0a6121darkgreen | #0a6121darkgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.39:1 | AAA |
| Text on card | 18.57:1 | AAA |
| Primary button | 5.99:1 | AA |
| Secondary button | 6.97:1 | AA |
| Muted text | 4.96:1 | AA |
| Accent | 6.97:1 | AA |
| Destructive | 7.14:1 | AAA |
| Text on background | 18.79:1 | AAA |
| Text on card | 18.76:1 | AAA |
| Primary button | 5.99:1 | AA |
| Secondary button | 6.97:1 | AA |
| Muted text | 5.71:1 | AA |
| Accent | 6.97:1 | AA |
| Destructive | 3.54:1 | AA Large |
Paste this into your globals.css to use Wrong in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 154.471);
--foreground: oklch(0.18 0.04 151.379);
--muted: oklch(0.886 0.017 334.856);
--muted-foreground: oklch(0.469 0.049 336.251);
--popover: oklch(0.987 0.006 154.413);
--popover-foreground: oklch(0.163 0.035 152.417);
--card: oklch(0.987 0.006 154.413);
--card-foreground: oklch(0.163 0.035 152.417);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.432 0.125 146.603);
--primary-foreground: oklch(0.907 0.112 152.086);
--secondary: oklch(0.338 0.135 342.253);
--secondary-foreground: oklch(0.822 0.119 336.881);
--accent: oklch(0.338 0.135 342.253);
--accent-foreground: oklch(0.822 0.119 336.881);
--destructive: oklch(0.327 0.114 33.26);
--destructive-foreground: oklch(0.818 0.095 31.719);
--ring: oklch(0.432 0.125 146.603);
--chart-1: oklch(0.432 0.125 146.603);
--chart-2: oklch(0.338 0.135 342.253);
--chart-3: oklch(0.338 0.135 342.253);
--chart-4: oklch(0.37 0.149 342.439);
--chart-5: oklch(0.437 0.128 146.394);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.153 0.017 153.498);
--foreground: oklch(0.986 0.002 154.483);
--muted: oklch(0.252 0.023 336.048);
--muted-foreground: oklch(0.694 0.044 335.606);
--popover: oklch(0.167 0.02 152.479);
--popover-foreground: oklch(0.993 0.001 154.505);
--card: oklch(0.167 0.02 152.479);
--card-foreground: oklch(0.993 0.001 154.505);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.432 0.125 146.603);
--primary-foreground: oklch(0.907 0.112 152.086);
--secondary: oklch(0.338 0.135 342.253);
--secondary-foreground: oklch(0.822 0.119 336.881);
--accent: oklch(0.338 0.135 342.253);
--accent-foreground: oklch(0.822 0.119 336.881);
--destructive: oklch(0.651 0.214 33.094);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.432 0.125 146.603);
--chart-1: oklch(0.432 0.125 146.603);
--chart-2: oklch(0.338 0.135 342.253);
--chart-3: oklch(0.338 0.135 342.253);
--chart-4: oklch(0.37 0.149 342.439);
--chart-5: oklch(0.437 0.128 146.394);
}