Weary is a shadcn/ui theme built around a muted deep purple primary color (#472a3f) with muted deep cyan accents (#2a3f47). The light mode uses a neutral background (#fcf7fb). Dark mode keeps the muted deep purple primary (#472a3f) on a purple-tinted background (#0c040a).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf7fbsnow | #0c040ablack |
| Foreground | #000000black | #faf5f9whitesmoke |
| Card | #fcf7fbsnow | #0c040ablack |
| Card foreground | #000000black | #faf5f9whitesmoke |
| Popover | #fcf7fbsnow | #0c040ablack |
| Popover foreground | #000000black | #faf5f9whitesmoke |
| Primary | #472a3fdarkslategray | #472a3fdarkslategray |
| Primary foreground | #ddc5d7thistle | #ddc5d7thistle |
| Secondary | #3f472adarkslategray | #3f472adarkslategray |
| Secondary foreground | #d7ddc5lightgrey | #d7ddc5lightgrey |
| Muted | #ebefe1beige | #1a1e10black |
| Muted foreground | #5d6052dimgray | #a9ad9fdarkgray |
| Accent | #2a3f47darkslategray | #2a3f47darkslategray |
| Accent foreground | #c5d7ddlightgrey | #c5d7ddlightgrey |
| Destructive | #b21d06firebrick | #f83d20orangered |
| Destructive foreground | #feeeeblinen | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #472a3fdarkslategray | #472a3fdarkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.90:1 | AAA |
| Text on card | 19.90:1 | AAA |
| Primary button | 7.84:1 | AAA |
| Secondary button | 7.02:1 | AAA |
| Muted text | 5.50:1 | AA |
| Accent | 7.41:1 | AAA |
| Destructive | 6.07:1 | AA |
| Text on background | 18.82:1 | AAA |
| Text on card | 18.82:1 | AAA |
| Primary button | 7.84:1 | AAA |
| Secondary button | 7.02:1 | AAA |
| Muted text | 7.42:1 | AAA |
| Accent | 7.41:1 | AAA |
| Destructive | 3.69:1 | AA Large |
Paste this into your globals.css to use Weary in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.007 334.001);
--foreground: oklch(0 0 0);
--muted: oklch(0.945 0.018 118.162);
--muted-foreground: oklch(0.483 0.023 118.66);
--popover: oklch(0.982 0.007 334.001);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.982 0.007 334.001);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.328 0.055 336.497);
--primary-foreground: oklch(0.849 0.036 334.572);
--secondary: oklch(0.382 0.047 120.12);
--secondary-foreground: oklch(0.887 0.033 118.479);
--accent: oklch(0.354 0.03 220.715);
--accent-foreground: oklch(0.868 0.021 219.712);
--destructive: oklch(0.491 0.186 31.289);
--destructive-foreground: oklch(0.961 0.018 28.039);
--ring: oklch(0.328 0.055 336.497);
--chart-1: oklch(0.328 0.055 336.497);
--chart-2: oklch(0.382 0.047 120.12);
--chart-3: oklch(0.354 0.03 220.715);
--chart-4: oklch(0.416 0.052 120.17);
--chart-5: oklch(0.328 0.061 336.783);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.124 0.024 334.79);
--foreground: oklch(0.974 0.008 334.015);
--muted: oklch(0.225 0.025 119.844);
--muted-foreground: oklch(0.74 0.02 118.315);
--popover: oklch(0.124 0.024 334.79);
--popover-foreground: oklch(0.974 0.008 334.015);
--card: oklch(0.124 0.024 334.79);
--card-foreground: oklch(0.974 0.008 334.015);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.328 0.055 336.497);
--primary-foreground: oklch(0.849 0.036 334.572);
--secondary: oklch(0.382 0.047 120.12);
--secondary-foreground: oklch(0.887 0.033 118.479);
--accent: oklch(0.354 0.03 220.715);
--accent-foreground: oklch(0.868 0.021 219.712);
--destructive: oklch(0.643 0.226 31.629);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.328 0.055 336.497);
--chart-1: oklch(0.328 0.055 336.497);
--chart-2: oklch(0.382 0.047 120.12);
--chart-3: oklch(0.354 0.03 220.715);
--chart-4: oklch(0.416 0.052 120.17);
--chart-5: oklch(0.328 0.061 336.783);
}