Existence is a shadcn/ui theme built around a green primary color (#a3b270) with green accents (#82b270). The light mode uses a neutral background (#fbfdf7). Dark mode keeps the green primary (#a3b270) on a green-tinted background (#090b05).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfdf7snow | #090b05black |
| Foreground | #111405black | #fafbf9snow |
| Card | #fafcf3floralwhite | #0c0e06black |
| Card foreground | #0d1004black | #fdfdfcwhite |
| Popover | #fbfdf7snow | #090b05black |
| Popover foreground | #111405black | #fafbf9snow |
| Primary | #a3b270darkkhaki | #a3b270darkkhaki |
| Primary foreground | #000000black | #000000black |
| Secondary | #b2a170darkkhaki | #b2a170darkkhaki |
| Secondary foreground | #000000black | #000000black |
| Muted | #e5e4e0gainsboro | #1f1d1ablack |
| Muted foreground | #605b4ddimgray | #b2ad9fdarkgray |
| Accent | #82b270darkseagreen | #82b270darkseagreen |
| Accent foreground | #000000black | #000000black |
| Destructive | #761805maroon | #f64a28tomato |
| Destructive foreground | #fcbdb1lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #a3b270darkkhaki | #a3b270darkkhaki |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.19:1 | AAA |
| Text on card | 18.52:1 | AAA |
| Primary button | 9.17:1 | AAA |
| Secondary button | 8.21:1 | AAA |
| Muted text | 5.33:1 | AA |
| Accent | 8.57:1 | AAA |
| Destructive | 6.89:1 | AA |
| Text on background | 19.07:1 | AAA |
| Text on card | 19.03:1 | AAA |
| Primary button | 9.17:1 | AAA |
| Secondary button | 8.21:1 | AAA |
| Muted text | 7.50:1 | AAA |
| Accent | 8.57:1 | AAA |
| Destructive | 3.54:1 | AA Large |
Paste this into your globals.css to use Existence in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.008 117.222);
--foreground: oklch(0.184 0.03 119.684);
--muted: oklch(0.919 0.005 90.164);
--muted-foreground: oklch(0.472 0.023 90.396);
--popover: oklch(0.991 0.008 117.222);
--popover-foreground: oklch(0.184 0.03 119.684);
--card: oklch(0.986 0.012 117.295);
--card-foreground: oklch(0.167 0.026 118.979);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.737 0.09 119.366);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.712 0.068 90.363);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.713 0.105 137.644);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.37 0.131 32.9);
--destructive-foreground: oklch(0.853 0.075 31.477);
--ring: oklch(0.737 0.09 119.366);
--chart-1: oklch(0.737 0.09 119.366);
--chart-2: oklch(0.712 0.068 90.363);
--chart-3: oklch(0.713 0.105 137.644);
--chart-4: oklch(0.732 0.064 90.403);
--chart-5: oklch(0.745 0.098 119.564);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.144 0.016 117.391);
--foreground: oklch(0.987 0.003 117.126);
--muted: oklch(0.232 0.007 90.326);
--muted-foreground: oklch(0.747 0.02 90.306);
--popover: oklch(0.144 0.016 117.391);
--popover-foreground: oklch(0.987 0.003 117.126);
--card: oklch(0.16 0.018 118.485);
--card-foreground: oklch(0.993 0.001 117.103);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.737 0.09 119.366);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.712 0.068 90.363);
--secondary-foreground: oklch(0 0 0);
--accent: oklch(0.713 0.105 137.644);
--accent-foreground: oklch(0 0 0);
--destructive: oklch(0.651 0.214 33.094);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.737 0.09 119.366);
--chart-1: oklch(0.737 0.09 119.366);
--chart-2: oklch(0.712 0.068 90.363);
--chart-3: oklch(0.713 0.105 137.644);
--chart-4: oklch(0.732 0.064 90.403);
--chart-5: oklch(0.745 0.098 119.564);
}