Phenotype is a shadcn/ui theme built around a vivid green primary color (#1ef686) with vivid orange accents (#f6861e). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid green primary (#1ef686) on a green-tinted background (#060f0a).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #060f0ablack |
| Foreground | #02120ablack | #fcfdfcwhite |
| Card | #ffffffwhite | #060f0ablack |
| Card foreground | #02120ablack | #fcfdfcwhite |
| Popover | #ffffffwhite | #060f0ablack |
| Popover foreground | #02120ablack | #fcfdfcwhite |
| Primary | #1ef686springgreen | #1ef686springgreen |
| Primary foreground | #034523darkgreen | #034523darkgreen |
| Secondary | #861ef6blueviolet | #861ef6blueviolet |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #e0d8e9gainsboro | #1e1627black |
| Muted foreground | #454346darkslategray | #bab9bcsilver |
| Accent | #f6861edarkorange | #f6861edarkorange |
| Accent foreground | #000000black | #000000black |
| Destructive | #b73410firebrick | #ed5d35tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #1ef686springgreen | #1ef686springgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.20:1 | AAA |
| Text on card | 19.20:1 | AAA |
| Primary button | 7.73:1 | AAA |
| Secondary button | 5.95:1 | AA |
| Muted text | 7.05:1 | AAA |
| Accent | 8.33:1 | AAA |
| Destructive | 5.97:1 | AA |
| Text on background | 19.09:1 | AAA |
| Text on card | 19.09:1 | AAA |
| Primary button | 7.73:1 | AAA |
| Secondary button | 5.95:1 | AA |
| Muted text | 8.97:1 | AAA |
| Accent | 8.33:1 | AAA |
| Destructive | 6.23:1 | AA |
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.164 0.03 161.632);
--muted: oklch(0.893 0.026 307.454);
--muted-foreground: oklch(0.387 0.005 307.641);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.164 0.03 161.632);
--card: oklch(1 0 180);
--card-foreground: oklch(0.164 0.03 161.632);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.854 0.216 152.733);
--primary-foreground: oklch(0.342 0.085 153.669);
--secondary: oklch(0.538 0.276 296.876);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.729 0.17 56.018);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.52 0.173 34.929);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.854 0.216 152.733);
--chart-1: oklch(0.854 0.216 152.733);
--chart-2: oklch(0.538 0.276 296.876);
--chart-3: oklch(0.729 0.17 56.018);
--chart-4: oklch(0.557 0.268 298.647);
--chart-5: oklch(0.862 0.221 152.425);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.156 0.018 162.65);
--foreground: oklch(0.993 0.001 164.25);
--muted: oklch(0.219 0.036 305.815);
--muted-foreground: oklch(0.787 0.004 307.728);
--popover: oklch(0.156 0.018 162.65);
--popover-foreground: oklch(0.993 0.001 164.25);
--card: oklch(0.156 0.018 162.65);
--card-foreground: oklch(0.993 0.001 164.25);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.854 0.216 152.733);
--primary-foreground: oklch(0.342 0.085 153.669);
--secondary: oklch(0.538 0.276 296.876);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.729 0.17 56.018);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.66 0.187 36.081);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.854 0.216 152.733);
--chart-1: oklch(0.854 0.216 152.733);
--chart-2: oklch(0.538 0.276 296.876);
--chart-3: oklch(0.729 0.17 56.018);
--chart-4: oklch(0.557 0.268 298.647);
--chart-5: oklch(0.862 0.221 152.425);
}