Ectoderm is a shadcn/ui theme built around a purple primary color (#ab3088) with green accents (#30ab53). The light mode uses a neutral background (#fcf8fb). Dark mode keeps the purple primary (#ab3088) on a neutral background (#070306).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf8fbsnow | #070306black |
| Foreground | #10050dblack | #fdfcfdwhite |
| Card | #faf5f8whitesmoke | #0a0509black |
| Card foreground | #0c0409black | #ffffffwhite |
| Popover | #faf5f8whitesmoke | #0a0509black |
| Popover foreground | #0c0409black | #ffffffwhite |
| Primary | #ab3088mediumvioletred | #ab3088mediumvioletred |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #30ab53seagreen | #30ab53seagreen |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #ecf3eewhitesmoke | #0c130eblack |
| Muted foreground | #3d433edarkslategray | #bcc2besilver |
| Accent | #30ab53seagreen | #30ab53seagreen |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #d05411chocolate | #ed651dchocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #ab3088mediumvioletred | #ab3088mediumvioletred |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.02:1 | AAA |
| Text on card | 18.76:1 | AAA |
| Primary button | 5.97:1 | AA |
| Secondary button | 2.96:1 | Fail |
| Muted text | 9.00:1 | AAA |
| Accent | 2.96:1 | Fail |
| Destructive | 4.25:1 | AA Large |
| Text on background | 19.99:1 | AAA |
| Text on card | 20.21:1 | AAA |
| Primary button | 5.97:1 | AA |
| Secondary button | 2.96:1 | Fail |
| Muted text | 10.41:1 | AAA |
| Accent | 2.96:1 | Fail |
| Destructive | 6.48:1 | AA |
Paste this into your globals.css to use Ectoderm in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.983 0.005 335.279);
--foreground: oklch(0.137 0.028 337.314);
--muted: oklch(0.958 0.01 154.999);
--muted-foreground: oklch(0.375 0.011 154.622);
--popover: oklch(0.975 0.007 335.324);
--popover-foreground: oklch(0.124 0.024 336.013);
--card: oklch(0.975 0.007 335.324);
--card-foreground: oklch(0.124 0.024 336.013);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.525 0.183 341.472);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.655 0.166 148.619);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.655 0.166 148.619);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.599 0.171 42.787);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.525 0.183 341.472);
--chart-1: oklch(0.525 0.183 341.472);
--chart-2: oklch(0.655 0.166 148.619);
--chart-3: oklch(0.655 0.166 148.619);
--chart-4: oklch(0.688 0.175 148.577);
--chart-5: oklch(0.528 0.19 341.781);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.111 0.013 335.543);
--foreground: oklch(0.992 0.001 335.211);
--muted: oklch(0.177 0.015 153.518);
--muted-foreground: oklch(0.809 0.009 154.976);
--popover: oklch(0.127 0.015 335.543);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.127 0.015 335.543);
--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.525 0.183 341.472);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.655 0.166 148.619);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.655 0.166 148.619);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.668 0.184 43.698);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.525 0.183 341.472);
--chart-1: oklch(0.525 0.183 341.472);
--chart-2: oklch(0.655 0.166 148.619);
--chart-3: oklch(0.655 0.166 148.619);
--chart-4: oklch(0.688 0.175 148.577);
--chart-5: oklch(0.528 0.19 341.781);
}