Colony is a shadcn/ui theme built around a vivid deep yellow primary color (#413202) with muted light yellow accents (#dad3be). The light mode uses a neutral background (#fdfcf7). Dark mode keeps the vivid deep yellow primary (#413202) on a neutral background (#070603).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcf7snow | #070603black |
| Foreground | #0d0b02black | #ffffffwhite |
| Card | #fdfcf7snow | #070603black |
| Card foreground | #0d0b02black | #ffffffwhite |
| Popover | #fdfcf7snow | #070603black |
| Popover foreground | #0d0b02black | #ffffffwhite |
| Primary | #413202darkolivegreen | #413202darkolivegreen |
| Primary foreground | #f9c415gold | #f9c415gold |
| Secondary | #e4e1d8gainsboro | #2c2b25darkslategray |
| Secondary foreground | #524c38darkolivegreen | #c7c5bcsilver |
| Muted | #e6e0ccgainsboro | #332d19darkslategray |
| Muted foreground | #6f6952dimgray | #ada690darkgray |
| Accent | #dad3belightgrey | #494536darkslategray |
| Accent foreground | #413a25darkslategray | #dedcd3gainsboro |
| Destructive | #97380csaddlebrown | #f07942coral |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #413202darkolivegreen | #413202darkolivegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.12:1 | AAA |
| Text on card | 19.12:1 | AAA |
| Primary button | 7.70:1 | AAA |
| Secondary button | 6.56:1 | AA |
| Muted text | 4.15:1 | AA Large |
| Accent | 7.57:1 | AAA |
| Destructive | 7.26:1 | AAA |
| Text on background | 20.26:1 | AAA |
| Text on card | 20.26:1 | AAA |
| Primary button | 7.70:1 | AAA |
| Secondary button | 8.21:1 | AAA |
| Muted text | 5.62:1 | AA |
| Accent | 6.98:1 | AA |
| Destructive | 7.51:1 | AAA |
Paste this into your globals.css to use Colony in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.006 92.72);
--foreground: oklch(0.147 0.022 97.288);
--muted: oklch(0.905 0.027 92.926);
--muted-foreground: oklch(0.52 0.034 93.132);
--popover: oklch(0.989 0.006 92.72);
--popover-foreground: oklch(0.147 0.022 97.288);
--card: oklch(0.989 0.006 92.72);
--card-foreground: oklch(0.147 0.022 97.288);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.324 0.065 90.255);
--primary-foreground: oklch(0.844 0.169 88.361);
--secondary: oklch(0.91 0.013 92.797);
--secondary-foreground: oklch(0.416 0.033 93.162);
--accent: oklch(0.867 0.029 92.952);
--accent-foreground: oklch(0.35 0.035 93.155);
--destructive: oklch(0.47 0.137 40.944);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.324 0.065 90.255);
--chart-1: oklch(0.324 0.065 90.255);
--chart-2: oklch(0.91 0.013 92.797);
--chart-3: oklch(0.867 0.029 92.952);
--chart-4: oklch(0.931 0.01 92.763);
--chart-5: oklch(0.327 0.066 90.102);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.122 0.009 95.612);
--foreground: oklch(1 0 180);
--muted: oklch(0.299 0.034 93.096);
--muted-foreground: oklch(0.724 0.032 93.024);
--popover: oklch(0.122 0.009 95.612);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.122 0.009 95.612);
--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.324 0.065 90.255);
--primary-foreground: oklch(0.844 0.169 88.361);
--secondary: oklch(0.288 0.01 92.966);
--secondary-foreground: oklch(0.822 0.012 92.796);
--accent: oklch(0.39 0.024 93.118);
--accent-foreground: oklch(0.894 0.012 92.788);
--destructive: oklch(0.704 0.161 43.893);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.324 0.065 90.255);
--chart-1: oklch(0.324 0.065 90.255);
--chart-2: oklch(0.288 0.01 92.966);
--chart-3: oklch(0.39 0.024 93.118);
--chart-4: oklch(0.32 0.012 92.976);
--chart-5: oklch(0.327 0.066 90.102);
}