Wry is a shadcn/ui theme built around a light purple primary color (#d4afd3) with neutral gray accents (#e4e2e4). The light mode uses a neutral background (#fdfbfd). Dark mode keeps the light purple primary (#d4afd3) on a neutral background (#080208).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfdsnow | #080208black |
| Foreground | #0d030cblack | #f9f6f9whitesmoke |
| Card | #fdfbfdsnow | #080208black |
| Card foreground | #0d030cblack | #f9f6f9whitesmoke |
| Popover | #fdfbfdsnow | #080208black |
| Popover foreground | #0d030cblack | #f9f6f9whitesmoke |
| Primary | #d4afd3thistle | #d4afd3thistle |
| Primary foreground | #351d34darkslategray | #351d34darkslategray |
| Secondary | #e4e2e4gainsboro | #201820black |
| Secondary foreground | #4e464ddarkslategray | #c0aabfsilver |
| Muted | #eae1ealavender | #1e151eblack |
| Muted foreground | #514d51darkslategray | #b2aeb1darkgray |
| Accent | #e4e2e4gainsboro | #201820black |
| Accent foreground | #4e464ddarkslategray | #c0aabfsilver |
| Destructive | #9d2406firebrick | #f85c35tomato |
| Destructive foreground | #fedfd8mistyrose | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d4afd3thistle | #d4afd3thistle |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.77:1 | AAA |
| Text on card | 19.77:1 | AAA |
| Primary button | 7.92:1 | AAA |
| Secondary button | 7.04:1 | AAA |
| Muted text | 6.49:1 | AA |
| Accent | 7.04:1 | AAA |
| Destructive | 6.20:1 | AA |
| Text on background | 19.12:1 | AAA |
| Text on card | 19.12:1 | AAA |
| Primary button | 7.92:1 | AAA |
| Secondary button | 8.03:1 | AAA |
| Muted text | 8.12:1 | AAA |
| Accent | 8.03:1 | AAA |
| Destructive | 6.56:1 | AA |
Paste this into your globals.css to use Wry in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.003 326.569);
--foreground: oklch(0.123 0.033 328.334);
--muted: oklch(0.919 0.016 326.693);
--muted-foreground: oklch(0.426 0.006 326.671);
--popover: oklch(0.992 0.003 326.569);
--popover-foreground: oklch(0.123 0.033 328.334);
--card: oklch(0.992 0.003 326.569);
--card-foreground: oklch(0.123 0.033 328.334);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.799 0.064 327.206);
--primary-foreground: oklch(0.272 0.054 328.121);
--secondary: oklch(0.914 0.005 326.586);
--secondary-foreground: oklch(0.405 0.015 326.861);
--accent: oklch(0.914 0.005 326.586);
--accent-foreground: oklch(0.405 0.015 326.861);
--destructive: oklch(0.458 0.162 33.706);
--destructive-foreground: oklch(0.927 0.035 34.311);
--ring: oklch(0.799 0.064 327.206);
--chart-1: oklch(0.799 0.064 327.206);
--chart-2: oklch(0.914 0.005 326.586);
--chart-3: oklch(0.914 0.005 326.586);
--chart-4: oklch(0.938 0.003 326.572);
--chart-5: oklch(0.798 0.07 327.271);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.109 0.024 327.982);
--foreground: oklch(0.976 0.006 326.59);
--muted: oklch(0.211 0.023 327.453);
--muted-foreground: oklch(0.756 0.006 326.605);
--popover: oklch(0.109 0.024 327.982);
--popover-foreground: oklch(0.976 0.006 326.59);
--card: oklch(0.109 0.024 327.982);
--card-foreground: oklch(0.976 0.006 326.59);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.799 0.064 327.206);
--primary-foreground: oklch(0.272 0.054 328.121);
--secondary: oklch(0.222 0.02 327.291);
--secondary-foreground: oklch(0.764 0.039 326.973);
--accent: oklch(0.222 0.02 327.291);
--accent-foreground: oklch(0.764 0.039 326.973);
--destructive: oklch(0.675 0.198 35.033);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.799 0.064 327.206);
--chart-1: oklch(0.799 0.064 327.206);
--chart-2: oklch(0.222 0.02 327.291);
--chart-3: oklch(0.222 0.02 327.291);
--chart-4: oklch(0.254 0.025 327.347);
--chart-5: oklch(0.798 0.07 327.271);
}