Wary is a shadcn/ui theme built around a muted light blue primary color (#c4cede) with muted light indigo accents (#c7c4de). The light mode uses a neutral background (#f7f9fc). Dark mode keeps the muted light blue primary (#c4cede) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f7f9fcghostwhite | #000000black |
| Foreground | #020409black | #f9fafaghostwhite |
| Card | #f4f6fbghostwhite | #030303black |
| Card foreground | #010204black | #fcfcfdwhite |
| Popover | #f7f9fcghostwhite | #000000black |
| Popover foreground | #020409black | #f9fafaghostwhite |
| Primary | #c4cedelightgrey | #c4cedelightgrey |
| Primary foreground | #283448darkslategray | #283448darkslategray |
| Secondary | #c4dbdelightgrey | #c4dbdelightgrey |
| Secondary foreground | #284548darkslategray | #284548darkslategray |
| Muted | #e4eff1lavender | #0e191bblack |
| Muted foreground | #5c5c5cdimgray | #a3a3a3darkgray |
| Accent | #c7c4dethistle | #c7c4dethistle |
| Accent foreground | #2c2848darkslategray | #2c2848darkslategray |
| Destructive | #a3400asaddlebrown | #f27836coral |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c4cedelightgrey | #c4cedelightgrey |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.50:1 | AAA |
| Text on card | 19.24:1 | AAA |
| Primary button | 7.89:1 | AAA |
| Secondary button | 7.15:1 | AAA |
| Muted text | 5.71:1 | AA |
| Accent | 8.21:1 | AAA |
| Destructive | 6.38:1 | AA |
| Text on background | 20.08:1 | AAA |
| Text on card | 20.16:1 | AAA |
| Primary button | 7.89:1 | AAA |
| Secondary button | 7.15:1 | AAA |
| Muted text | 7.08:1 | AAA |
| Accent | 8.21:1 | AAA |
| Destructive | 7.50:1 | AAA |
Paste this into your globals.css to use Wary in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.983 0.004 259.939);
--foreground: oklch(0.107 0.017 249.572);
--muted: oklch(0.945 0.012 206.37);
--muted-foreground: oklch(0.474 0 198.435);
--popover: oklch(0.983 0.004 259.939);
--popover-foreground: oklch(0.107 0.017 249.572);
--card: oklch(0.974 0.007 259.941);
--card-foreground: oklch(0.085 0.013 249.572);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.849 0.025 259.942);
--primary-foreground: oklch(0.324 0.04 259.727);
--secondary: oklch(0.876 0.025 206.299);
--secondary-foreground: oklch(0.368 0.035 206.425);
--accent: oklch(0.831 0.037 290.925);
--accent-foreground: oklch(0.297 0.058 287.662);
--destructive: oklch(0.5 0.143 42.748);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.849 0.025 259.942);
--chart-1: oklch(0.849 0.025 259.942);
--chart-2: oklch(0.876 0.025 206.299);
--chart-3: oklch(0.831 0.037 290.925);
--chart-4: oklch(0.897 0.021 206.319);
--chart-5: oklch(0.847 0.028 259.939);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.984 0.001 259.935);
--muted: oklch(0.204 0.016 206.304);
--muted-foreground: oklch(0.716 0 165.964);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.984 0.001 259.935);
--card: oklch(0.092 0 180);
--card-foreground: oklch(0.992 0.001 259.934);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.849 0.025 259.942);
--primary-foreground: oklch(0.324 0.04 259.727);
--secondary: oklch(0.876 0.025 206.299);
--secondary-foreground: oklch(0.368 0.035 206.425);
--accent: oklch(0.831 0.037 290.925);
--accent-foreground: oklch(0.297 0.058 287.662);
--destructive: oklch(0.704 0.169 45.927);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.849 0.025 259.942);
--chart-1: oklch(0.849 0.025 259.942);
--chart-2: oklch(0.876 0.025 206.299);
--chart-3: oklch(0.831 0.037 290.925);
--chart-4: oklch(0.897 0.021 206.319);
--chart-5: oklch(0.847 0.028 259.939);
}