Existence is a shadcn/ui theme built around a deep red primary color (#5e2628) with deep teal accents (#265e5c). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep red primary (#5e2628) on a red-tinted background (#0d0707).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0d0707black |
| Foreground | #110304black | #f8f6f6whitesmoke |
| Card | #ffffffwhite | #0d0707black |
| Card foreground | #110304black | #f8f6f6whitesmoke |
| Popover | #ffffffwhite | #0d0707black |
| Popover foreground | #110304black | #f8f6f6whitesmoke |
| Primary | #5e2628saddlebrown | #5e2628saddlebrown |
| Primary foreground | #eacccdpink | #eacccdpink |
| Secondary | #265e5cdarkslategray | #265e5cdarkslategray |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #d2e9e9gainsboro | #162d2cdarkslategray |
| Muted foreground | #506d6cdimgray | #92afaedarkgray |
| Accent | #265e5cdarkslategray | #265e5cdarkslategray |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #740901maroon | #fd392borangered |
| Destructive foreground | #feafa9lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #5e2628saddlebrown | #5e2628saddlebrown |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.21:1 | AAA |
| Text on card | 20.21:1 | AAA |
| Primary button | 7.82:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 4.43:1 | AA Large |
| Accent | 7.37:1 | AAA |
| Destructive | 6.68:1 | AA |
| Text on background | 18.54:1 | AAA |
| Text on card | 18.54:1 | AAA |
| Primary button | 7.82:1 | AAA |
| Secondary button | 7.37:1 | AAA |
| Muted text | 6.22:1 | AA |
| Accent | 7.37:1 | AAA |
| Destructive | 3.62:1 | AA Large |
Paste this into your globals.css to use Existence in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.13 0.029 18.836);
--muted: oklch(0.918 0.025 194.296);
--muted-foreground: oklch(0.511 0.033 193.599);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.13 0.029 18.836);
--card: oklch(1 0 180);
--card-foreground: oklch(0.13 0.029 18.836);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.351 0.082 20.222);
--primary-foreground: oklch(0.872 0.034 15.531);
--secondary: oklch(0.445 0.058 192.283);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.445 0.058 192.283);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.356 0.139 30.414);
--destructive-foreground: oklch(0.828 0.094 23.826);
--ring: oklch(0.351 0.082 20.222);
--chart-1: oklch(0.351 0.082 20.222);
--chart-2: oklch(0.445 0.058 192.283);
--chart-3: oklch(0.445 0.058 192.283);
--chart-4: oklch(0.48 0.064 192.253);
--chart-5: oklch(0.35 0.087 20.729);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.139 0.012 16.112);
--foreground: oklch(0.976 0.002 14.834);
--muted: oklch(0.277 0.029 192.818);
--muted-foreground: oklch(0.732 0.031 194.006);
--popover: oklch(0.139 0.012 16.112);
--popover-foreground: oklch(0.976 0.002 14.834);
--card: oklch(0.139 0.012 16.112);
--card-foreground: oklch(0.976 0.002 14.834);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.351 0.082 20.222);
--primary-foreground: oklch(0.872 0.034 15.531);
--secondary: oklch(0.445 0.058 192.283);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.445 0.058 192.283);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.649 0.232 29.256);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.351 0.082 20.222);
--chart-1: oklch(0.351 0.082 20.222);
--chart-2: oklch(0.445 0.058 192.283);
--chart-3: oklch(0.445 0.058 192.283);
--chart-4: oklch(0.48 0.064 192.253);
--chart-5: oklch(0.35 0.087 20.729);
}