Ecosystem is a shadcn/ui theme built around a muted indigo primary color (#524f69) with muted green accents (#4f6952). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the muted indigo primary (#524f69) on a neutral background (#030208).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfbfeghostwhite | #030208black |
| Foreground | #070614black | #fcfcfdwhite |
| Card | #fbfbfeghostwhite | #030208black |
| Card foreground | #070614black | #fcfcfdwhite |
| Popover | #fbfbfeghostwhite | #030208black |
| Popover foreground | #070614black | #fcfcfdwhite |
| Primary | #524f69dimgray | #524f69dimgray |
| Primary foreground | #f4f3f6whitesmoke | #f4f3f6whitesmoke |
| Secondary | #69524fdimgray | #69524fdimgray |
| Secondary foreground | #f6f4f3whitesmoke | #f6f4f3whitesmoke |
| Muted | #eddbd9gainsboro | #261412black |
| Muted foreground | #463b39darkslategray | #c6bab9silver |
| Accent | #4f6952dimgray | #4f6952dimgray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #670e0amaroon | #e01f15crimson |
| Destructive foreground | #f7afablightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #524f69dimgray | #524f69dimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.44:1 | AAA |
| Text on card | 19.44:1 | AAA |
| Primary button | 7.10:1 | AAA |
| Secondary button | 6.60:1 | AA |
| Muted text | 8.09:1 | AAA |
| Accent | 6.07:1 | AA |
| Destructive | 7.11:1 | AAA |
| Text on background | 20.11:1 | AAA |
| Text on card | 20.11:1 | AAA |
| Primary button | 7.10:1 | AAA |
| Secondary button | 6.60:1 | AA |
| Muted text | 9.33:1 | AAA |
| Accent | 6.07:1 | AA |
| Destructive | 4.79:1 | AA |
Paste this into your globals.css to use Ecosystem in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.989 0.004 290.933);
--foreground: oklch(0.134 0.031 287.07);
--muted: oklch(0.905 0.02 25.18);
--muted-foreground: oklch(0.363 0.016 25.42);
--popover: oklch(0.989 0.004 290.933);
--popover-foreground: oklch(0.134 0.031 287.07);
--card: oklch(0.989 0.004 290.933);
--card-foreground: oklch(0.134 0.031 287.07);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.44 0.042 289.131);
--primary-foreground: oklch(0.966 0.004 290.94);
--secondary: oklch(0.46 0.031 25.694);
--secondary-foreground: oklch(0.968 0.003 25.013);
--accent: oklch(0.492 0.048 147.447);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.332 0.122 28.88);
--destructive-foreground: oklch(0.821 0.086 22.468);
--ring: oklch(0.44 0.042 289.131);
--chart-1: oklch(0.44 0.042 289.131);
--chart-2: oklch(0.46 0.031 25.694);
--chart-3: oklch(0.492 0.048 147.447);
--chart-4: oklch(0.486 0.034 25.703);
--chart-5: oklch(0.433 0.051 288.65);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.098 0.019 288.678);
--foreground: oklch(0.991 0.002 290.973);
--muted: oklch(0.216 0.03 26.673);
--muted-foreground: oklch(0.798 0.013 25.131);
--popover: oklch(0.098 0.019 288.678);
--popover-foreground: oklch(0.991 0.002 290.973);
--card: oklch(0.098 0.019 288.678);
--card-foreground: oklch(0.991 0.002 290.973);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.44 0.042 289.131);
--primary-foreground: oklch(0.966 0.004 290.94);
--secondary: oklch(0.46 0.031 25.694);
--secondary-foreground: oklch(0.968 0.003 25.013);
--accent: oklch(0.492 0.048 147.447);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.579 0.224 29.323);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.44 0.042 289.131);
--chart-1: oklch(0.44 0.042 289.131);
--chart-2: oklch(0.46 0.031 25.694);
--chart-3: oklch(0.492 0.048 147.447);
--chart-4: oklch(0.486 0.034 25.703);
--chart-5: oklch(0.433 0.051 288.65);
}