Existence is a shadcn/ui theme built around a deep green primary color (#0d2616) with deep pink accents (#260d1d). The light mode uses a neutral background (#fbfdfc). Dark mode keeps the deep green primary (#0d2616) on a neutral background (#030705).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfdfcwhite | #030705black |
| Foreground | #020d06black | #f7f8f7whitesmoke |
| Card | #fbfdfcwhite | #030705black |
| Card foreground | #020d06black | #f7f8f7whitesmoke |
| Popover | #fbfdfcwhite | #030705black |
| Popover foreground | #020d06black | #f7f8f7whitesmoke |
| Primary | #0d2616black | #0d2616black |
| Primary foreground | #40bf6fmediumseagreen | #40bf6fmediumseagreen |
| Secondary | #260d1dblack | #260d1dblack |
| Secondary foreground | #d98cbdorchid | #d98cbdorchid |
| Muted | #e9dde4gainsboro | #22161eblack |
| Muted foreground | #5a4e56dimgray | #b1a5acdarkgray |
| Accent | #260d1dblack | #260d1dblack |
| Accent foreground | #d98cbdorchid | #d98cbdorchid |
| Destructive | #a52c03firebrick | #fa551eorangered |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0d2616black | #0d2616black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.41:1 | AAA |
| Text on card | 19.41:1 | AAA |
| Primary button | 6.79:1 | AA |
| Secondary button | 7.28:1 | AAA |
| Muted text | 6.00:1 | AA |
| Accent | 7.28:1 | AAA |
| Destructive | 7.10:1 | AAA |
| Text on background | 19.03:1 | AAA |
| Text on card | 19.03:1 | AAA |
| Primary button | 6.79:1 | AA |
| Secondary button | 7.28:1 | AAA |
| Muted text | 7.35:1 | AAA |
| Accent | 7.28:1 | AAA |
| Destructive | 6.40:1 | AA |
Paste this into your globals.css to use Existence in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 158.658);
--foreground: oklch(0.144 0.026 157.974);
--muted: oklch(0.91 0.015 339.08);
--muted-foreground: oklch(0.439 0.02 339.646);
--popover: oklch(0.994 0.003 158.658);
--popover-foreground: oklch(0.144 0.026 157.974);
--card: oklch(0.994 0.003 158.658);
--card-foreground: oklch(0.144 0.026 157.974);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.244 0.044 153.716);
--primary-foreground: oklch(0.716 0.161 151.862);
--secondary: oklch(0.205 0.05 343.56);
--secondary-foreground: oklch(0.733 0.111 341.739);
--accent: oklch(0.205 0.05 343.56);
--accent-foreground: oklch(0.733 0.111 341.739);
--destructive: oklch(0.479 0.163 35.651);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.244 0.044 153.716);
--chart-1: oklch(0.244 0.044 153.716);
--chart-2: oklch(0.205 0.05 343.56);
--chart-3: oklch(0.205 0.05 343.56);
--chart-4: oklch(0.237 0.062 343.979);
--chart-5: oklch(0.246 0.047 153.427);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.12 0.011 158.572);
--foreground: oklch(0.978 0.002 158.674);
--muted: oklch(0.219 0.022 340.762);
--muted-foreground: oklch(0.734 0.017 339.213);
--popover: oklch(0.12 0.011 158.572);
--popover-foreground: oklch(0.978 0.002 158.674);
--card: oklch(0.12 0.011 158.572);
--card-foreground: oklch(0.978 0.002 158.674);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.244 0.044 153.716);
--primary-foreground: oklch(0.716 0.161 151.862);
--secondary: oklch(0.205 0.05 343.56);
--secondary-foreground: oklch(0.733 0.111 341.739);
--accent: oklch(0.205 0.05 343.56);
--accent-foreground: oklch(0.733 0.111 341.739);
--destructive: oklch(0.67 0.21 36.913);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.244 0.044 153.716);
--chart-1: oklch(0.244 0.044 153.716);
--chart-2: oklch(0.205 0.05 343.56);
--chart-3: oklch(0.205 0.05 343.56);
--chart-4: oklch(0.237 0.062 343.979);
--chart-5: oklch(0.246 0.047 153.427);
}