Essential is a shadcn/ui theme built around a muted green primary color (#697963) with neutral gray accents (#e3e4e2). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted green primary (#697963) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #050d02black | #f9fcf8mintcream |
| Card | #ffffffwhite | #000000black |
| Card foreground | #050d02black | #f9fcf8mintcream |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #050d02black | #f9fcf8mintcream |
| Primary | #697963dimgray | #697963dimgray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #e3e4e2gainsboro | #232622black |
| Secondary foreground | #494b48darkslategray | #bbc1b9silver |
| Muted | #f2f4f1whitesmoke | #0c0e0bblack |
| Muted foreground | #40483cdarkslategray | #bac3b7silver |
| Accent | #e3e4e2gainsboro | #232622black |
| Accent foreground | #494b48darkslategray | #bbc1b9silver |
| Destructive | #913b0dsaddlebrown | #ec6922chocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #697963dimgray | #697963dimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.72:1 | AAA |
| Text on card | 19.72:1 | AAA |
| Primary button | 4.67:1 | AA |
| Secondary button | 6.88:1 | AA |
| Muted text | 8.57:1 | AAA |
| Accent | 6.88:1 | AA |
| Destructive | 7.37:1 | AAA |
| Text on background | 20.30:1 | AAA |
| Text on card | 20.30:1 | AAA |
| Primary button | 4.67:1 | AA |
| Secondary button | 8.36:1 | AAA |
| Muted text | 10.67:1 | AAA |
| Accent | 8.36:1 | AAA |
| Destructive | 6.60:1 | AA |
Paste this into your globals.css to use Essential in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.147 0.033 134.653);
--muted: oklch(0.964 0.005 136.623);
--muted-foreground: oklch(0.391 0.023 136.791);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.147 0.033 134.653);
--card: oklch(1 0 180);
--card-foreground: oklch(0.147 0.033 134.653);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.555 0.038 136.828);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.916 0.002 136.615);
--secondary-foreground: oklch(0.411 0.006 136.649);
--accent: oklch(0.916 0.002 136.615);
--accent-foreground: oklch(0.411 0.006 136.649);
--destructive: oklch(0.465 0.128 43.623);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.555 0.038 136.828);
--chart-1: oklch(0.555 0.038 136.828);
--chart-2: oklch(0.916 0.002 136.615);
--chart-3: oklch(0.916 0.002 136.615);
--chart-4: oklch(0.939 0.001 136.613);
--chart-5: oklch(0.561 0.049 136.898);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.987 0.006 136.626);
--muted: oklch(0.161 0.007 136.748);
--muted-foreground: oklch(0.806 0.019 136.68);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.987 0.006 136.626);
--card: oklch(0 0 0);
--card-foreground: oklch(0.987 0.006 136.626);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.555 0.038 136.828);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.263 0.009 136.713);
--secondary-foreground: oklch(0.803 0.013 136.656);
--accent: oklch(0.263 0.009 136.713);
--accent-foreground: oklch(0.803 0.013 136.656);
--destructive: oklch(0.672 0.179 44.352);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.555 0.038 136.828);
--chart-1: oklch(0.555 0.038 136.828);
--chart-2: oklch(0.263 0.009 136.713);
--chart-3: oklch(0.263 0.009 136.713);
--chart-4: oklch(0.295 0.011 136.719);
--chart-5: oklch(0.561 0.049 136.898);
}