Alcove is a shadcn/ui theme built around a deep green primary color (#637321) with deep green accents (#397321). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep green primary (#637321) on a green-tinted background (#090a05).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #090a05black |
| Foreground | #0e1104black | #f9faf5whitesmoke |
| Card | #fcfcfcsnow | #0c0e07black |
| Card foreground | #0b0c03black | #fbfbf8snow |
| Popover | #fcfcfcsnow | #0c0e07black |
| Popover foreground | #0b0c03black | #fbfbf8snow |
| Primary | #637321darkolivegreen | #637321darkolivegreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #735b21saddlebrown | #735b21saddlebrown |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e9e7e2gainsboro | #1d1b16black |
| Muted foreground | #524f47darkslategray | #b8b5addarkgray |
| Accent | #397321darkolivegreen | #397321darkolivegreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #c54111firebrick | #ed5f2cchocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #637321darkolivegreen | #637321darkolivegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.08:1 | AAA |
| Text on card | 19.23:1 | AAA |
| Primary button | 5.22:1 | AA |
| Secondary button | 6.49:1 | AA |
| Muted text | 6.60:1 | AA |
| Accent | 5.72:1 | AA |
| Destructive | 5.06:1 | AA |
| Text on background | 18.91:1 | AAA |
| Text on card | 18.76:1 | AAA |
| Primary button | 5.22:1 | AA |
| Secondary button | 6.49:1 | AA |
| Muted text | 8.42:1 | AAA |
| Accent | 5.72:1 | AA |
| Destructive | 6.27:1 | AA |
Paste this into your globals.css to use Alcove in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.168 0.027 117.682);
--muted: oklch(0.927 0.006 87.454);
--muted-foreground: oklch(0.427 0.013 87.543);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.15 0.024 116.696);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.15 0.024 116.696);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.526 0.108 120.086);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.483 0.082 85.308);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.499 0.13 137.872);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.559 0.176 37.491);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.526 0.108 120.086);
--chart-1: oklch(0.526 0.108 120.086);
--chart-2: oklch(0.483 0.082 85.308);
--chart-3: oklch(0.499 0.13 137.872);
--chart-4: oklch(0.518 0.088 85.218);
--chart-5: oklch(0.533 0.112 120.278);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.142 0.013 115.935);
--foreground: oklch(0.982 0.006 115.693);
--muted: oklch(0.221 0.009 87.561);
--muted-foreground: oklch(0.772 0.011 87.49);
--popover: oklch(0.158 0.014 116.831);
--popover-foreground: oklch(0.988 0.004 115.654);
--card: oklch(0.158 0.014 116.831);
--card-foreground: oklch(0.988 0.004 115.654);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.526 0.108 120.086);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.483 0.082 85.308);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.499 0.13 137.872);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.661 0.186 38.946);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.526 0.108 120.086);
--chart-1: oklch(0.526 0.108 120.086);
--chart-2: oklch(0.483 0.082 85.308);
--chart-3: oklch(0.499 0.13 137.872);
--chart-4: oklch(0.518 0.088 85.218);
--chart-5: oklch(0.533 0.112 120.278);
}