Chair is a shadcn/ui theme built around a green primary color (#73d49e) with teal accents (#73d4cf). The light mode uses a neutral background (#fbfefc). Dark mode keeps the green primary (#73d49e) on a green-tinted background (#060e0a).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefcwhite | #060e0ablack |
| Foreground | #05100ablack | #f4faf7whitesmoke |
| Card | #f8fcfamintcream | #08120cblack |
| Card foreground | #030c07black | #f8fcfamintcream |
| Popover | #f8fcfamintcream | #08120cblack |
| Popover foreground | #030c07black | #f8fcfamintcream |
| Primary | #73d49emediumaquamarine | #73d49emediumaquamarine |
| Primary foreground | #05100ablack | #05100ablack |
| Secondary | #77d473darkseagreen | #77d473darkseagreen |
| Secondary foreground | #051005black | #051005black |
| Muted | #e5ece4gainsboro | #141b13black |
| Muted foreground | #505350darkslategray | #acafacdarkgray |
| Accent | #73d4cfskyblue | #73d4cfskyblue |
| Accent foreground | #05100fblack | #05100fblack |
| Destructive | #641a07maroon | #f16441tomato |
| Destructive foreground | #f8b6a5lightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #73d49emediumaquamarine | #73d49emediumaquamarine |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.03:1 | AAA |
| Text on card | 19.16:1 | AAA |
| Primary button | 10.71:1 | AAA |
| Secondary button | 10.56:1 | AAA |
| Muted text | 6.46:1 | AA |
| Accent | 11.05:1 | AAA |
| Destructive | 7.24:1 | AAA |
| Text on background | 18.46:1 | AAA |
| Text on card | 18.45:1 | AAA |
| Primary button | 10.71:1 | AAA |
| Secondary button | 10.56:1 | AAA |
| Muted text | 7.95:1 | AAA |
| Accent | 11.05:1 | AAA |
| Destructive | 6.64:1 | AA |
Paste this into your globals.css to use Chair in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 162.546);
--foreground: oklch(0.158 0.022 160.764);
--muted: oklch(0.935 0.012 144.053);
--muted-foreground: oklch(0.439 0.007 144.042);
--popover: oklch(0.987 0.006 162.471);
--popover-foreground: oklch(0.141 0.019 162.381);
--card: oklch(0.987 0.006 162.471);
--card-foreground: oklch(0.141 0.019 162.381);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.795 0.121 157.971);
--primary-foreground: oklch(0.158 0.022 160.826);
--secondary: oklch(0.789 0.16 142.873);
--secondary-foreground: oklch(0.156 0.03 142.587);
--accent: oklch(0.809 0.092 191.246);
--accent-foreground: oklch(0.16 0.017 191.787);
--destructive: oklch(0.337 0.109 34.642);
--destructive-foreground: oklch(0.833 0.082 34.515);
--ring: oklch(0.795 0.121 157.971);
--chart-1: oklch(0.795 0.121 157.971);
--chart-2: oklch(0.789 0.16 142.873);
--chart-3: oklch(0.809 0.092 191.246);
--chart-4: oklch(0.805 0.148 142.995);
--chart-5: oklch(0.801 0.127 157.712);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.154 0.016 161.299);
--foreground: oklch(0.981 0.008 162.42);
--muted: oklch(0.211 0.018 143.625);
--muted-foreground: oklch(0.751 0.006 144.085);
--popover: oklch(0.168 0.019 159.873);
--popover-foreground: oklch(0.987 0.005 162.488);
--card: oklch(0.168 0.019 159.873);
--card-foreground: oklch(0.987 0.005 162.488);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.795 0.121 157.971);
--primary-foreground: oklch(0.158 0.022 160.826);
--secondary: oklch(0.789 0.16 142.873);
--secondary-foreground: oklch(0.156 0.03 142.587);
--accent: oklch(0.809 0.092 191.246);
--accent-foreground: oklch(0.16 0.017 191.787);
--destructive: oklch(0.676 0.181 35.188);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.795 0.121 157.971);
--chart-1: oklch(0.795 0.121 157.971);
--chart-2: oklch(0.789 0.16 142.873);
--chart-3: oklch(0.809 0.092 191.246);
--chart-4: oklch(0.805 0.148 142.995);
--chart-5: oklch(0.801 0.127 157.712);
}