Wrong is a shadcn/ui theme built around a muted light yellow primary color (#dcd9c1) with muted light green accents (#d1dcc1). The light mode uses a neutral background (#fdfcf7). Dark mode keeps the muted light yellow primary (#dcd9c1) on a yellow-tinted background (#0c0b04).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcf7snow | #0c0b04black |
| Foreground | #121003black | #f9f8f6whitesmoke |
| Card | #fbfbf3floralwhite | #100f05black |
| Card foreground | #0d0c02black | #fbfbf9snow |
| Popover | #fdfcf7snow | #0c0b04black |
| Popover foreground | #121003black | #f9f8f6whitesmoke |
| Primary | #dcd9c1lightgrey | #dcd9c1lightgrey |
| Primary foreground | #444227darkolivegreen | #444227darkolivegreen |
| Secondary | #dcccc1lightgrey | #dcccc1lightgrey |
| Secondary foreground | #443327darkslategray | #443327darkslategray |
| Muted | #f1ece9linen | #16110eblack |
| Muted foreground | #534b46darkslategray | #b9b1acdarkgray |
| Accent | #d1dcc1lightgrey | #d1dcc1lightgrey |
| Accent foreground | #384427darkslategray | #384427darkslategray |
| Destructive | #6c2e09saddlebrown | #d35912chocolate |
| Destructive foreground | #f8caafpeachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #dcd9c1lightgrey | #dcd9c1lightgrey |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.56:1 | AAA |
| Text on card | 18.84:1 | AAA |
| Primary button | 7.19:1 | AAA |
| Secondary button | 7.70:1 | AAA |
| Muted text | 7.29:1 | AAA |
| Accent | 7.24:1 | AAA |
| Destructive | 6.94:1 | AA |
| Text on background | 18.58:1 | AAA |
| Text on card | 18.60:1 | AAA |
| Primary button | 7.19:1 | AAA |
| Secondary button | 7.70:1 | AAA |
| Muted text | 8.87:1 | AAA |
| Accent | 7.24:1 | AAA |
| Destructive | 4.02:1 | AA Large |
Paste this into your globals.css to use Wrong in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.006 102.318);
--foreground: oklch(0.171 0.028 104.936);
--muted: oklch(0.947 0.007 58.265);
--muted-foreground: oklch(0.42 0.014 57.889);
--popover: oklch(0.99 0.006 102.318);
--popover-foreground: oklch(0.171 0.028 104.936);
--card: oklch(0.986 0.01 102.371);
--card-foreground: oklch(0.153 0.025 105.399);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.882 0.032 102.785);
--primary-foreground: oklch(0.373 0.042 103.755);
--secondary: oklch(0.856 0.023 57.993);
--secondary-foreground: oklch(0.337 0.032 56.94);
--accent: oklch(0.878 0.037 125.639);
--accent-foreground: oklch(0.368 0.049 127.084);
--destructive: oklch(0.381 0.1 45.667);
--destructive-foreground: oklch(0.872 0.064 51.651);
--ring: oklch(0.882 0.032 102.785);
--chart-1: oklch(0.882 0.032 102.785);
--chart-2: oklch(0.856 0.023 57.993);
--chart-3: oklch(0.878 0.037 125.639);
--chart-4: oklch(0.879 0.019 58.062);
--chart-5: oklch(0.885 0.036 102.842);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.147 0.018 104.794);
--foreground: oklch(0.98 0.003 102.262);
--muted: oklch(0.183 0.01 57.587);
--muted-foreground: oklch(0.767 0.012 58.14);
--popover: oklch(0.147 0.018 104.794);
--popover-foreground: oklch(0.98 0.003 102.262);
--card: oklch(0.164 0.021 104.343);
--card-foreground: oklch(0.987 0.002 102.245);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.882 0.032 102.785);
--primary-foreground: oklch(0.373 0.042 103.755);
--secondary: oklch(0.856 0.023 57.993);
--secondary-foreground: oklch(0.337 0.032 56.94);
--accent: oklch(0.878 0.037 125.639);
--accent-foreground: oklch(0.368 0.049 127.084);
--destructive: oklch(0.612 0.17 44.221);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.882 0.032 102.785);
--chart-1: oklch(0.882 0.032 102.785);
--chart-2: oklch(0.856 0.023 57.993);
--chart-3: oklch(0.878 0.037 125.639);
--chart-4: oklch(0.879 0.019 58.062);
--chart-5: oklch(0.885 0.036 102.842);
}