Collaboration is a shadcn/ui theme built around a muted deep green primary color (#3e4238) with muted green accents (#b6c8a3). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep green primary (#3e4238) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #0b1202black | #f8faf4whitesmoke |
| Card | #ffffffwhite | #000000black |
| Card foreground | #0b1202black | #f8faf4whitesmoke |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #0b1202black | #f8faf4whitesmoke |
| Primary | #3e4238darkslategray | #3e4238darkslategray |
| Primary foreground | #d6d9d3lightgrey | #d6d9d3lightgrey |
| Secondary | #cdd6c2lightgrey | #151613black |
| Secondary foreground | #343d29darkslategray | #aeb4a7darkgray |
| Muted | #e8ece4beige | #171b13black |
| Muted foreground | #61645edimgray | #9ea19bdarkgray |
| Accent | #b6c8a3silver | #24291fdarkslategray |
| Accent foreground | #1d2315black | #bdc6b3silver |
| Destructive | #c65310chocolate | #ee752ftomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #3e4238darkslategray | #3e4238darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.06:1 | AAA |
| Text on card | 19.06:1 | AAA |
| Primary button | 7.21:1 | AAA |
| Secondary button | 7.58:1 | AAA |
| Muted text | 5.02:1 | AA |
| Accent | 9.00:1 | AAA |
| Destructive | 4.52:1 | AA |
| Text on background | 19.97:1 | AAA |
| Text on card | 19.97:1 | AAA |
| Primary button | 7.21:1 | AAA |
| Secondary button | 8.55:1 | AAA |
| Muted text | 6.67:1 | AA |
| Accent | 8.44:1 | AAA |
| Destructive | 7.24:1 | AAA |
Paste this into your globals.css to use Collaboration in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.17 0.036 127.809);
--muted: oklch(0.938 0.011 127.257);
--muted-foreground: oklch(0.498 0.01 127.351);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.17 0.036 127.809);
--card: oklch(1 0 180);
--card-foreground: oklch(0.17 0.036 127.809);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.372 0.017 127.698);
--primary-foreground: oklch(0.883 0.009 127.243);
--secondary: oklch(0.864 0.029 127.536);
--secondary-foreground: oklch(0.346 0.036 128.492);
--accent: oklch(0.808 0.054 127.958);
--accent-foreground: oklch(0.245 0.027 128.576);
--destructive: oklch(0.583 0.163 44.156);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.372 0.017 127.698);
--chart-1: oklch(0.372 0.017 127.698);
--chart-2: oklch(0.864 0.029 127.536);
--chart-3: oklch(0.808 0.054 127.958);
--chart-4: oklch(0.884 0.025 127.461);
--chart-5: oklch(0.376 0.024 127.912);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.982 0.008 127.214);
--muted: oklch(0.215 0.016 128.052);
--muted-foreground: oklch(0.705 0.009 127.267);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.982 0.008 127.214);
--card: oklch(0 0 0);
--card-foreground: oklch(0.982 0.008 127.214);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.372 0.017 127.698);
--primary-foreground: oklch(0.883 0.009 127.243);
--secondary: oklch(0.197 0.007 127.542);
--secondary-foreground: oklch(0.761 0.019 127.429);
--accent: oklch(0.272 0.019 128.008);
--accent-foreground: oklch(0.815 0.027 127.527);
--destructive: oklch(0.694 0.169 46.957);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.372 0.017 127.698);
--chart-1: oklch(0.372 0.017 127.698);
--chart-2: oklch(0.197 0.007 127.542);
--chart-3: oklch(0.272 0.019 128.008);
--chart-4: oklch(0.232 0.009 127.594);
--chart-5: oklch(0.376 0.024 127.912);
}