Wrong is a shadcn/ui theme built around a light indigo primary color (#dcdcf9) with light green accents (#dcf9dc). The light mode uses a neutral background (#f8f8fc). Dark mode keeps the light indigo primary (#dcdcf9) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f8f8fcghostwhite | #000000black |
| Foreground | #010109black | #f9f9fbghostwhite |
| Card | #f8f8fcghostwhite | #000000black |
| Card foreground | #010109black | #f9f9fbghostwhite |
| Popover | #f8f8fcghostwhite | #000000black |
| Popover foreground | #010109black | #f9f9fbghostwhite |
| Primary | #dcdcf9lavender | #dcdcf9lavender |
| Primary foreground | #2c2fddroyalblue | #2c2fddroyalblue |
| Secondary | #f9dcdcmistyrose | #f9dcdcmistyrose |
| Secondary foreground | #8c1719darkred | #8c1719darkred |
| Muted | #ebe0e0gainsboro | #1f1414black |
| Muted foreground | #5c5152dimgray | #aea3a3darkgray |
| Accent | #dcf9dcbeige | #dcf9dcbeige |
| Accent foreground | #093509darkgreen | #093509darkgreen |
| Destructive | #690707maroon | #f02828crimson |
| Destructive foreground | #f9a9a9lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #dcdcf9lavender | #dcdcf9lavender |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.59:1 | AAA |
| Text on card | 19.59:1 | AAA |
| Primary button | 6.13:1 | AA |
| Secondary button | 7.24:1 | AAA |
| Muted text | 5.91:1 | AA |
| Accent | 12.24:1 | AAA |
| Destructive | 6.89:1 | AA |
| Text on background | 19.97:1 | AAA |
| Text on card | 19.97:1 | AAA |
| Primary button | 6.13:1 | AA |
| Secondary button | 7.24:1 | AAA |
| Muted text | 7.32:1 | AAA |
| Accent | 12.24:1 | AAA |
| Destructive | 4.15:1 | AA Large |
Paste this into your globals.css to use Wrong in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.98 0.006 285.51);
--foreground: oklch(0.083 0.032 275.355);
--muted: oklch(0.916 0.012 16.201);
--muted-foreground: oklch(0.447 0.014 16.528);
--popover: oklch(0.98 0.006 285.51);
--popover-foreground: oklch(0.083 0.032 275.355);
--card: oklch(0.98 0.006 285.51);
--card-foreground: oklch(0.083 0.032 275.355);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.904 0.039 284.813);
--primary-foreground: oklch(0.452 0.25 270.012);
--secondary: oklch(0.919 0.033 16.614);
--secondary-foreground: oklch(0.416 0.152 26.346);
--accent: oklch(0.954 0.049 144.731);
--accent-foreground: oklch(0.288 0.085 142.761);
--destructive: oklch(0.332 0.129 28.056);
--destructive-foreground: oklch(0.813 0.095 19.32);
--ring: oklch(0.904 0.039 284.813);
--chart-1: oklch(0.904 0.039 284.813);
--chart-2: oklch(0.919 0.033 16.614);
--chart-3: oklch(0.954 0.049 144.731);
--chart-4: oklch(0.949 0.02 16.35);
--chart-5: oklch(0.903 0.041 284.776);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.983 0.002 285.588);
--muted: oklch(0.206 0.018 17.598);
--muted-foreground: oklch(0.725 0.012 16.271);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.983 0.002 285.588);
--card: oklch(0 0 0);
--card-foreground: oklch(0.983 0.002 285.588);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.904 0.039 284.813);
--primary-foreground: oklch(0.452 0.25 270.012);
--secondary: oklch(0.919 0.033 16.614);
--secondary-foreground: oklch(0.416 0.152 26.346);
--accent: oklch(0.954 0.049 144.731);
--accent-foreground: oklch(0.288 0.085 142.761);
--destructive: oklch(0.615 0.231 27.465);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.904 0.039 284.813);
--chart-1: oklch(0.904 0.039 284.813);
--chart-2: oklch(0.919 0.033 16.614);
--chart-3: oklch(0.954 0.049 144.731);
--chart-4: oklch(0.949 0.02 16.35);
--chart-5: oklch(0.903 0.041 284.776);
}