Cage is a shadcn/ui theme built around a teal primary color (#27916c) with cyan accents (#278191). The light mode uses a neutral background (#fbfefd). Dark mode keeps the teal primary (#27916c) on a neutral background (#040706).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefdwhite | #040706black |
| Foreground | #010906black | #ffffffwhite |
| Card | #fbfefdwhite | #040706black |
| Card foreground | #010906black | #ffffffwhite |
| Popover | #fbfefdwhite | #040706black |
| Popover foreground | #010906black | #ffffffwhite |
| Primary | #27916cseagreen | #27916cseagreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #279137forestgreen | #279137forestgreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #f0f4f1whitesmoke | #0b0f0bblack |
| Muted foreground | #435145darkslategray | #aebcb0darkgray |
| Accent | #278191darkcyan | #278191darkcyan |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #9d210cfirebrick | #da2f10firebrick |
| Destructive foreground | #fde2demistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #27916cseagreen | #27916cseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.79:1 | AAA |
| Text on card | 19.79:1 | AAA |
| Primary button | 3.92:1 | AA Large |
| Secondary button | 4.04:1 | AA Large |
| Muted text | 7.58:1 | AAA |
| Accent | 4.52:1 | AA |
| Destructive | 6.45:1 | AA |
| Text on background | 20.27:1 | AAA |
| Text on card | 20.27:1 | AAA |
| Primary button | 3.92:1 | AA Large |
| Secondary button | 4.04:1 | AA Large |
| Muted text | 9.77:1 | AAA |
| Accent | 4.52:1 | AA |
| Destructive | 4.77:1 | AA |
Paste this into your globals.css to use Cage in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.002 173.502);
--foreground: oklch(0.127 0.019 173.89);
--muted: oklch(0.964 0.007 150.156);
--muted-foreground: oklch(0.418 0.025 149.434);
--popover: oklch(0.994 0.002 173.502);
--popover-foreground: oklch(0.127 0.019 173.89);
--card: oklch(0.994 0.002 173.502);
--card-foreground: oklch(0.127 0.019 173.89);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.588 0.111 164.874);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.578 0.16 145.37);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.559 0.085 211.949);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.454 0.162 32.123);
--destructive-foreground: oklch(0.934 0.03 29.608);
--ring: oklch(0.588 0.111 164.874);
--chart-1: oklch(0.588 0.111 164.874);
--chart-2: oklch(0.578 0.16 145.37);
--chart-3: oklch(0.559 0.085 211.949);
--chart-4: oklch(0.612 0.17 145.331);
--chart-5: oklch(0.595 0.115 164.449);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.121 0.009 173.724);
--foreground: oklch(1 0 180);
--muted: oklch(0.162 0.01 149.377);
--muted-foreground: oklch(0.781 0.022 149.881);
--popover: oklch(0.121 0.009 173.724);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.121 0.009 173.724);
--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.588 0.111 164.874);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.578 0.16 145.37);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.559 0.085 211.949);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.578 0.21 31.973);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.588 0.111 164.874);
--chart-1: oklch(0.588 0.111 164.874);
--chart-2: oklch(0.578 0.16 145.37);
--chart-3: oklch(0.559 0.085 211.949);
--chart-4: oklch(0.612 0.17 145.331);
--chart-5: oklch(0.595 0.115 164.449);
}