Shelter is a shadcn/ui theme built around a deep green primary color (#1f350e) with muted light green accents (#ced4c9). The light mode uses a neutral background (#fafcf8). Dark mode keeps the deep green primary (#1f350e) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #fafcf8snow | #000000black |
| Foreground | #070e02black | #ffffffwhite |
| Card | #f7fbf4whitesmoke | #030303black |
| Card foreground | #050901black | #ffffffwhite |
| Popover | #f7fbf4whitesmoke | #030303black |
| Popover foreground | #050901black | #ffffffwhite |
| Primary | #1f350edarkgreen | #1f350edarkgreen |
| Primary foreground | #7ece40yellowgreen | #7ece40yellowgreen |
| Secondary | #ced4c9lightgrey | #191b18black |
| Secondary foreground | #353c2fdarkslategray | #b2b6afdarkgray |
| Muted | #d9e9cdgainsboro | #223216black |
| Muted foreground | #595e55dimgray | #a5aaa1darkgray |
| Accent | #ced4c9lightgrey | #191b18black |
| Accent foreground | #353c2fdarkslategray | #b2b6afdarkgray |
| Destructive | #81380esaddlebrown | #e76418chocolate |
| Destructive foreground | #f9dac8bisque | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #1f350edarkgreen | #1f350edarkgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.96:1 | AAA |
| Text on card | 19.14:1 | AAA |
| Primary button | 6.88:1 | AA |
| Secondary button | 7.56:1 | AAA |
| Muted text | 5.23:1 | AA |
| Accent | 7.56:1 | AAA |
| Destructive | 6.33:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 6.88:1 | AA |
| Secondary button | 8.43:1 | AAA |
| Muted text | 5.79:1 | AA |
| Accent | 8.43:1 | AAA |
| Destructive | 6.22:1 | AA |
Paste this into your globals.css to use Shelter in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.006 131.142);
--foreground: oklch(0.15 0.033 129.707);
--muted: oklch(0.915 0.041 131.483);
--muted-foreground: oklch(0.474 0.015 131.374);
--popover: oklch(0.983 0.01 131.171);
--popover-foreground: oklch(0.13 0.028 129.244);
--card: oklch(0.983 0.01 131.171);
--card-foreground: oklch(0.13 0.028 129.244);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.299 0.068 133.951);
--primary-foreground: oklch(0.772 0.19 134.407);
--secondary: oklch(0.863 0.017 131.262);
--secondary-foreground: oklch(0.345 0.024 131.717);
--accent: oklch(0.863 0.017 131.262);
--accent-foreground: oklch(0.345 0.024 131.717);
--destructive: oklch(0.433 0.113 45.681);
--destructive-foreground: oklch(0.909 0.043 51.977);
--ring: oklch(0.299 0.068 133.951);
--chart-1: oklch(0.299 0.068 133.951);
--chart-2: oklch(0.863 0.017 131.262);
--chart-3: oklch(0.863 0.017 131.262);
--chart-4: oklch(0.885 0.015 131.229);
--chart-5: oklch(0.302 0.071 134.112);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.293 0.052 132.968);
--muted-foreground: oklch(0.732 0.014 131.251);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--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.299 0.068 133.951);
--primary-foreground: oklch(0.772 0.19 134.407);
--secondary: oklch(0.219 0.005 131.301);
--secondary-foreground: oklch(0.772 0.012 131.218);
--accent: oklch(0.219 0.005 131.301);
--accent-foreground: oklch(0.772 0.012 131.218);
--destructive: oklch(0.657 0.18 44.616);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.299 0.068 133.951);
--chart-1: oklch(0.299 0.068 133.951);
--chart-2: oklch(0.219 0.005 131.301);
--chart-3: oklch(0.219 0.005 131.301);
--chart-4: oklch(0.252 0.007 131.32);
--chart-5: oklch(0.302 0.071 134.112);
}