Codon is a shadcn/ui theme built around a vivid green primary color (#36e760) with vivid teal accents (#36e7b8). The light mode uses a neutral background (#f8fcf9). Dark mode keeps the vivid green primary (#36e760) on a green-tinted background (#070e08).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fcf9mintcream | #070e08black |
| Foreground | #020803black | #f5faf6whitesmoke |
| Card | #f8fcf9mintcream | #070e08black |
| Card foreground | #020803black | #f5faf6whitesmoke |
| Popover | #f8fcf9mintcream | #070e08black |
| Popover foreground | #020803black | #f5faf6whitesmoke |
| Primary | #36e760limegreen | #36e760limegreen |
| Primary foreground | #094918darkgreen | #094918darkgreen |
| Secondary | #65e736limegreen | #65e736limegreen |
| Secondary foreground | #1a4909darkgreen | #1a4909darkgreen |
| Muted | #eff1efwhitesmoke | #0f100eblack |
| Muted foreground | #596255dimgray | #a0aa9ddarkgray |
| Accent | #36e7b8turquoise | #36e7b8turquoise |
| Accent foreground | #094938darkslategray | #094938darkslategray |
| Destructive | #6b190bmaroon | #ec5a41tomato |
| Destructive foreground | #f7bbb0lightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #36e760limegreen | #36e760limegreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.48:1 | AAA |
| Text on card | 19.48:1 | AAA |
| Primary button | 6.47:1 | AA |
| Secondary button | 6.54:1 | AA |
| Muted text | 5.59:1 | AA |
| Accent | 6.59:1 | AA |
| Destructive | 7.18:1 | AAA |
| Text on background | 18.52:1 | AAA |
| Text on card | 18.52:1 | AAA |
| Primary button | 6.47:1 | AA |
| Secondary button | 6.54:1 | AA |
| Muted text | 7.91:1 | AAA |
| Accent | 6.59:1 | AA |
| Destructive | 6.12:1 | AA |
Paste this into your globals.css to use Codon in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.005 153.159);
--foreground: oklch(0.123 0.021 152.462);
--muted: oklch(0.956 0.003 137.197);
--muted-foreground: oklch(0.485 0.023 137.306);
--popover: oklch(0.987 0.005 153.159);
--popover-foreground: oklch(0.123 0.021 152.462);
--card: oklch(0.987 0.005 153.159);
--card-foreground: oklch(0.123 0.021 152.462);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.815 0.227 146.625);
--primary-foreground: oklch(0.355 0.101 146.425);
--secondary: oklch(0.824 0.238 139.075);
--secondary-foreground: oklch(0.359 0.105 139.181);
--accent: oklch(0.832 0.154 169.805);
--accent-foreground: oklch(0.363 0.068 169.476);
--destructive: oklch(0.351 0.117 32.349);
--destructive-foreground: oklch(0.844 0.072 30.016);
--ring: oklch(0.815 0.227 146.625);
--chart-1: oklch(0.815 0.227 146.625);
--chart-2: oklch(0.824 0.238 139.075);
--chart-3: oklch(0.832 0.154 169.805);
--chart-4: oklch(0.833 0.228 138.766);
--chart-5: oklch(0.823 0.233 146.427);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.152 0.016 152.277);
--foreground: oklch(0.98 0.007 153.121);
--muted: oklch(0.172 0.005 137.259);
--muted-foreground: oklch(0.726 0.021 137.258);
--popover: oklch(0.152 0.016 152.277);
--popover-foreground: oklch(0.98 0.007 153.121);
--card: oklch(0.152 0.016 152.277);
--card-foreground: oklch(0.98 0.007 153.121);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.815 0.227 146.625);
--primary-foreground: oklch(0.355 0.101 146.425);
--secondary: oklch(0.824 0.238 139.075);
--secondary-foreground: oklch(0.359 0.105 139.181);
--accent: oklch(0.832 0.154 169.805);
--accent-foreground: oklch(0.363 0.068 169.476);
--destructive: oklch(0.656 0.185 32.205);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.815 0.227 146.625);
--chart-1: oklch(0.815 0.227 146.625);
--chart-2: oklch(0.824 0.238 139.075);
--chart-3: oklch(0.832 0.154 169.805);
--chart-4: oklch(0.833 0.228 138.766);
--chart-5: oklch(0.823 0.233 146.427);
}