Accommodation is a shadcn/ui theme built around a muted deep green primary color (#2c2f22) with neutral gray accents (#dadbd7). The light mode uses a neutral background (#fdfefb). Dark mode keeps the muted deep green primary (#2c2f22) on a green-tinted background (#090a05).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfefbwhite | #090a05black |
| Foreground | #0a0c03black | #f8f9f6whitesmoke |
| Card | #fcfdf7snow | #0c0e07black |
| Card foreground | #070802black | #fafbf9snow |
| Popover | #fdfefbwhite | #090a05black |
| Popover foreground | #0a0c03black | #f8f9f6whitesmoke |
| Primary | #2c2f22darkslategray | #2c2f22darkslategray |
| Primary foreground | #c7ccb8silver | #c7ccb8silver |
| Secondary | #dadbd7gainsboro | #22231fblack |
| Secondary foreground | #42433ddarkslategray | #bcbeb6silver |
| Muted | #edeee7linen | #161811black |
| Muted foreground | #5e634bdarkolivegreen | #afb49cdarkgray |
| Accent | #dadbd7gainsboro | #22231fblack |
| Accent foreground | #42433ddarkslategray | #bcbeb6silver |
| Destructive | #670b04maroon | #f51a0ared |
| Destructive foreground | #fba8a2lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #2c2f22darkslategray | #2c2f22darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.45:1 | AAA |
| Text on card | 19.62:1 | AAA |
| Primary button | 8.25:1 | AAA |
| Secondary button | 7.16:1 | AAA |
| Muted text | 5.34:1 | AA |
| Accent | 7.16:1 | AAA |
| Destructive | 6.91:1 | AA |
| Text on background | 18.76:1 | AAA |
| Text on card | 18.72:1 | AAA |
| Primary button | 8.25:1 | AAA |
| Secondary button | 8.39:1 | AAA |
| Muted text | 8.38:1 | AAA |
| Accent | 8.39:1 | AAA |
| Destructive | 4.17:1 | AA Large |
Paste this into your globals.css to use Accommodation in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.996 0.004 116.404);
--foreground: oklch(0.149 0.022 117.15);
--muted: oklch(0.946 0.009 116.51);
--muted-foreground: oklch(0.487 0.038 117.751);
--popover: oklch(0.996 0.004 116.404);
--popover-foreground: oklch(0.149 0.022 117.15);
--card: oklch(0.991 0.008 116.477);
--card-foreground: oklch(0.129 0.019 116.768);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.299 0.023 117.736);
--primary-foreground: oklch(0.835 0.027 116.919);
--secondary: oklch(0.889 0.005 116.438);
--secondary-foreground: oklch(0.379 0.011 116.845);
--accent: oklch(0.889 0.005 116.438);
--accent-foreground: oklch(0.379 0.011 116.845);
--destructive: oklch(0.33 0.125 30.001);
--destructive-foreground: oklch(0.811 0.099 23.983);
--ring: oklch(0.299 0.023 117.736);
--chart-1: oklch(0.299 0.023 117.736);
--chart-2: oklch(0.889 0.005 116.438);
--chart-3: oklch(0.889 0.005 116.438);
--chart-4: oklch(0.911 0.004 116.414);
--chart-5: oklch(0.303 0.027 117.972);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.142 0.013 116.623);
--foreground: oklch(0.98 0.003 116.391);
--muted: oklch(0.204 0.013 117.536);
--muted-foreground: oklch(0.76 0.034 117.149);
--popover: oklch(0.142 0.013 116.623);
--popover-foreground: oklch(0.98 0.003 116.391);
--card: oklch(0.158 0.015 117.607);
--card-foreground: oklch(0.987 0.002 116.371);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.299 0.023 117.736);
--primary-foreground: oklch(0.835 0.027 116.919);
--secondary: oklch(0.254 0.007 116.86);
--secondary-foreground: oklch(0.799 0.012 116.594);
--accent: oklch(0.254 0.007 116.86);
--accent-foreground: oklch(0.799 0.012 116.594);
--destructive: oklch(0.615 0.244 29.751);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.299 0.023 117.736);
--chart-1: oklch(0.299 0.023 117.736);
--chart-2: oklch(0.254 0.007 116.86);
--chart-3: oklch(0.254 0.007 116.86);
--chart-4: oklch(0.287 0.009 116.89);
--chart-5: oklch(0.303 0.027 117.972);
}