Cooperative is a shadcn/ui theme built around an orange primary color (#884620) with blue accents (#206288). The light mode uses a neutral background (#fcf9f8). Dark mode keeps the orange primary (#884620) on an orange-tinted background (#0b0704).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf9f8snow | #0b0704black |
| Foreground | #0d0603black | #fdfcfcsnow |
| Card | #fcf9f8snow | #0b0704black |
| Card foreground | #0d0603black | #fdfcfcsnow |
| Popover | #fcf9f8snow | #0b0704black |
| Popover foreground | #0d0603black | #fdfcfcsnow |
| Primary | #884620saddlebrown | #884620saddlebrown |
| Primary foreground | #f8eae2linen | #f8eae2linen |
| Secondary | #206288teal | #206288teal |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e0e7eblavender | #141b1fblack |
| Muted foreground | #474848darkslategray | #b7b8b8silver |
| Accent | #206288teal | #206288teal |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #cc4105chocolate | #f9611fchocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #884620saddlebrown | #884620saddlebrown |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.22:1 | AAA |
| Text on card | 19.22:1 | AAA |
| Primary button | 6.04:1 | AA |
| Secondary button | 6.62:1 | AA |
| Muted text | 7.33:1 | AAA |
| Accent | 6.62:1 | AA |
| Destructive | 4.86:1 | AA |
| Text on background | 19.61:1 | AAA |
| Text on card | 19.61:1 | AAA |
| Primary button | 6.04:1 | AA |
| Secondary button | 6.62:1 | AA |
| Muted text | 8.76:1 | AAA |
| Accent | 6.62:1 | AA |
| Destructive | 6.75:1 | AA |
Paste this into your globals.css to use Cooperative in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.985 0.004 52.527);
--foreground: oklch(0.132 0.018 62.073);
--muted: oklch(0.924 0.009 232.712);
--muted-foreground: oklch(0.399 0.001 232.632);
--popover: oklch(0.985 0.004 52.527);
--popover-foreground: oklch(0.132 0.018 62.073);
--card: oklch(0.985 0.004 52.527);
--card-foreground: oklch(0.132 0.018 62.073);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.47 0.104 48.194);
--primary-foreground: oklch(0.947 0.019 52.317);
--secondary: oklch(0.473 0.09 238.594);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.473 0.09 238.594);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.57 0.184 37.938);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.47 0.104 48.194);
--chart-1: oklch(0.47 0.104 48.194);
--chart-2: oklch(0.473 0.09 238.594);
--chart-3: oklch(0.473 0.09 238.594);
--chart-4: oklch(0.503 0.096 238.704);
--chart-5: oklch(0.472 0.108 47.802);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.132 0.013 59.623);
--foreground: oklch(0.992 0.001 52.56);
--muted: oklch(0.217 0.012 233.491);
--muted-foreground: oklch(0.781 0.001 232.602);
--popover: oklch(0.132 0.013 59.623);
--popover-foreground: oklch(0.992 0.001 52.56);
--card: oklch(0.132 0.013 59.623);
--card-foreground: oklch(0.992 0.001 52.56);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.47 0.104 48.194);
--primary-foreground: oklch(0.947 0.019 52.317);
--secondary: oklch(0.473 0.09 238.594);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.473 0.09 238.594);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.681 0.2 40.111);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.47 0.104 48.194);
--chart-1: oklch(0.47 0.104 48.194);
--chart-2: oklch(0.473 0.09 238.594);
--chart-3: oklch(0.473 0.09 238.594);
--chart-4: oklch(0.503 0.096 238.704);
--chart-5: oklch(0.472 0.108 47.802);
}