Enclave is a shadcn/ui theme built around a muted pink primary color (#945767) with muted teal accents (#579484). The light mode uses a neutral background (#fefbfc). Dark mode keeps the muted pink primary (#945767) on a pink-tinted background (#0c0406).
| Token | Light | Dark |
|---|---|---|
| Background | #fefbfcsnow | #0c0406black |
| Foreground | #050102black | #fbf8f9snow |
| Card | #fefbfcsnow | #0c0406black |
| Card foreground | #050102black | #fbf8f9snow |
| Popover | #fefbfcsnow | #0c0406black |
| Popover foreground | #050102black | #fbf8f9snow |
| Primary | #945767dimgray | #945767dimgray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #579484cadetblue | #579484cadetblue |
| Secondary foreground | #000000black | #000000black |
| Muted | #dceae6gainsboro | #15231fblack |
| Muted foreground | #56615edimgray | #9ea9a6darkgray |
| Accent | #579484cadetblue | #579484cadetblue |
| Accent foreground | #000000black | #000000black |
| Destructive | #95150fdarkred | #eb4037tomato |
| Destructive foreground | #fbdcdamistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #945767dimgray | #945767dimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.15:1 | AAA |
| Text on card | 20.15:1 | AAA |
| Primary button | 5.51:1 | AA |
| Secondary button | 5.95:1 | AA |
| Muted text | 5.18:1 | AA |
| Accent | 5.95:1 | AA |
| Destructive | 6.85:1 | AA |
| Text on background | 19.25:1 | AAA |
| Text on card | 19.25:1 | AAA |
| Primary button | 5.51:1 | AA |
| Secondary button | 5.95:1 | AA |
| Muted text | 6.72:1 | AA |
| Accent | 5.95:1 | AA |
| Destructive | 3.93:1 | AA Large |
Paste this into your globals.css to use Enclave in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.004 358.895);
--foreground: oklch(0.079 0.023 358.519);
--muted: oklch(0.925 0.015 178.308);
--muted-foreground: oklch(0.483 0.014 177.901);
--popover: oklch(0.99 0.004 358.895);
--popover-foreground: oklch(0.079 0.023 358.519);
--card: oklch(0.99 0.004 358.895);
--card-foreground: oklch(0.079 0.023 358.519);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.53 0.083 3.091);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.619 0.069 174.96);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.619 0.069 174.96);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.43 0.162 29.111);
--destructive-foreground: oklch(0.919 0.035 21.409);
--ring: oklch(0.53 0.083 3.091);
--chart-1: oklch(0.53 0.083 3.091);
--chart-2: oklch(0.619 0.069 174.96);
--chart-3: oklch(0.619 0.069 174.96);
--chart-4: oklch(0.649 0.072 174.936);
--chart-5: oklch(0.528 0.092 3.644);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.121 0.02 358.805);
--foreground: oklch(0.983 0.003 358.88);
--muted: oklch(0.241 0.02 176.123);
--muted-foreground: oklch(0.724 0.013 178.254);
--popover: oklch(0.121 0.02 358.805);
--popover-foreground: oklch(0.983 0.003 358.88);
--card: oklch(0.121 0.02 358.805);
--card-foreground: oklch(0.983 0.003 358.88);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.53 0.083 3.091);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.619 0.069 174.96);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.619 0.069 174.96);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.626 0.209 27.931);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.53 0.083 3.091);
--chart-1: oklch(0.53 0.083 3.091);
--chart-2: oklch(0.619 0.069 174.96);
--chart-3: oklch(0.619 0.069 174.96);
--chart-4: oklch(0.649 0.072 174.936);
--chart-5: oklch(0.528 0.092 3.644);
}