Phenotype is a shadcn/ui theme built around a green primary color (#29754e) with orange accents (#754e29). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#29754e) on a green-tinted background (#050b08).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #050b08black |
| Foreground | #000000black | #ffffffwhite |
| Card | #ffffffwhite | #050b08black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #ffffffwhite | #050b08black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #29754eseagreen | #29754eseagreen |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #4e2975darkslateblue | #4e2975darkslateblue |
| Secondary foreground | #e8ddf3lavender | #e8ddf3lavender |
| Muted | #ede9f2lavender | #120d16black |
| Muted foreground | #453f4bdarkslategray | #bab4c0silver |
| Accent | #754e29saddlebrown | #754e29saddlebrown |
| Accent foreground | #f3e8ddantiquewhite | #f3e8ddantiquewhite |
| Destructive | #9c1111darkred | #e93535crimson |
| Destructive foreground | #fce3e3mistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #29754eseagreen | #29754eseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 21.00:1 | AAA |
| Text on card | 21.00:1 | AAA |
| Primary button | 5.60:1 | AA |
| Secondary button | 8.46:1 | AAA |
| Muted text | 8.47:1 | AAA |
| Accent | 6.05:1 | AA |
| Destructive | 6.87:1 | AA |
| Text on background | 19.89:1 | AAA |
| Text on card | 19.89:1 | AAA |
| Primary button | 5.60:1 | AA |
| Secondary button | 8.46:1 | AAA |
| Muted text | 9.46:1 | AAA |
| Accent | 6.05:1 | AA |
| Destructive | 4.19:1 | AA Large |
Paste this into your globals.css to use Phenotype in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0 0 0);
--muted: oklch(0.939 0.013 307.63);
--muted-foreground: oklch(0.377 0.022 307.103);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0 0 0);
--card: oklch(1 0 180);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.505 0.098 157.294);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.37 0.126 302.967);
--secondary-foreground: oklch(0.913 0.032 307.384);
--accent: oklch(0.459 0.074 62.293);
--accent-foreground: oklch(0.936 0.019 65.722);
--destructive: oklch(0.443 0.171 27.948);
--destructive-foreground: oklch(0.937 0.027 17.642);
--ring: oklch(0.505 0.098 157.294);
--chart-1: oklch(0.505 0.098 157.294);
--chart-2: oklch(0.37 0.126 302.967);
--chart-3: oklch(0.459 0.074 62.293);
--chart-4: oklch(0.393 0.136 302.877);
--chart-5: oklch(0.51 0.103 156.879);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.139 0.013 164.337);
--foreground: oklch(1 0 180);
--muted: oklch(0.171 0.019 306.454);
--muted-foreground: oklch(0.778 0.019 307.511);
--popover: oklch(0.139 0.013 164.337);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.139 0.013 164.337);
--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.505 0.098 157.294);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.37 0.126 302.967);
--secondary-foreground: oklch(0.913 0.032 307.384);
--accent: oklch(0.459 0.074 62.293);
--accent-foreground: oklch(0.936 0.019 65.722);
--destructive: oklch(0.611 0.215 26.39);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.505 0.098 157.294);
--chart-1: oklch(0.505 0.098 157.294);
--chart-2: oklch(0.37 0.126 302.967);
--chart-3: oklch(0.459 0.074 62.293);
--chart-4: oklch(0.393 0.136 302.877);
--chart-5: oklch(0.51 0.103 156.879);
}