Refuge is a shadcn/ui theme built around a deep purple primary color (#6f1b5f) with muted light purple accents (#ddc5d9). The light mode uses a neutral background (#fefbfd). Dark mode keeps the deep purple primary (#6f1b5f) on a purple-tinted background (#0b050a).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfdsnow | #0b050ablack |
| Foreground | #040104black | #ffffffwhite |
| Card | #fefbfdsnow | #0b050ablack |
| Card foreground | #040104black | #ffffffwhite |
| Popover | #fefbfdsnow | #0b050ablack |
| Popover foreground | #040104black | #ffffffwhite |
| Primary | #6f1b5fpurple | #6f1b5fpurple |
| Primary foreground | #f2caebmistyrose | #f2caebmistyrose |
| Secondary | #e4d8e2gainsboro | #1b1319black |
| Secondary foreground | #52384ddarkslategray | #bda3b8darkgray |
| Muted | #eee2eclavender | #1d111bblack |
| Muted foreground | #4d4c4ddarkslategray | #b3b2b3darkgray |
| Accent | #ddc5d9thistle | #392235darkslategray |
| Accent foreground | #472942darkslategray | #d5b9d0thistle |
| Destructive | #af2d12firebrick | #eb5a3dtomato |
| Destructive foreground | #fef7f6snow | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #6f1b5fpurple | #6f1b5fpurple |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.20:1 | AAA |
| Text on card | 20.20:1 | AAA |
| Primary button | 7.22:1 | AAA |
| Secondary button | 7.47:1 | AAA |
| Muted text | 6.79:1 | AA |
| Accent | 7.84:1 | AAA |
| Destructive | 6.18:1 | AA |
| Text on background | 20.22:1 | AAA |
| Text on card | 20.22:1 | AAA |
| Primary button | 7.22:1 | AAA |
| Secondary button | 7.88:1 | AAA |
| Muted text | 8.66:1 | AAA |
| Accent | 7.99:1 | AAA |
| Destructive | 6.05:1 | AA |
Paste this into your globals.css to use Refuge in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.004 331.469);
--foreground: oklch(0.084 0.022 332.562);
--muted: oklch(0.925 0.02 331.706);
--muted-foreground: oklch(0.417 0.003 331.504);
--popover: oklch(0.991 0.004 331.469);
--popover-foreground: oklch(0.084 0.022 332.562);
--card: oklch(0.991 0.004 331.469);
--card-foreground: oklch(0.084 0.022 332.562);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.387 0.141 336.409);
--primary-foreground: oklch(0.882 0.063 332.379);
--secondary: oklch(0.894 0.019 331.713);
--secondary-foreground: oklch(0.378 0.05 333.165);
--accent: oklch(0.849 0.039 332.04);
--accent-foreground: oklch(0.329 0.059 333.772);
--destructive: oklch(0.5 0.171 32.903);
--destructive-foreground: oklch(0.982 0.008 31.058);
--ring: oklch(0.387 0.141 336.409);
--chart-1: oklch(0.387 0.141 336.409);
--chart-2: oklch(0.894 0.019 331.713);
--chart-3: oklch(0.849 0.039 332.04);
--chart-4: oklch(0.919 0.015 331.635);
--chart-5: oklch(0.389 0.146 336.609);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.126 0.018 332.117);
--foreground: oklch(1 0 180);
--muted: oklch(0.198 0.029 333.334);
--muted-foreground: oklch(0.764 0.002 331.453);
--popover: oklch(0.126 0.018 332.117);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.126 0.018 332.117);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.387 0.141 336.409);
--primary-foreground: oklch(0.882 0.063 332.379);
--secondary: oklch(0.2 0.018 332.598);
--secondary-foreground: oklch(0.744 0.043 332.211);
--accent: oklch(0.291 0.046 333.519);
--accent-foreground: oklch(0.816 0.044 332.157);
--destructive: oklch(0.653 0.185 33.18);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.387 0.141 336.409);
--chart-1: oklch(0.387 0.141 336.409);
--chart-2: oklch(0.2 0.018 332.598);
--chart-3: oklch(0.291 0.046 333.519);
--chart-4: oklch(0.232 0.022 332.719);
--chart-5: oklch(0.389 0.146 336.609);
}