Essential is a shadcn/ui theme built around a green primary color (#5be18a) with neutral gray accents (#dfe1e0). The light mode uses a neutral background (#fbfefc). Dark mode keeps the green primary (#5be18a) on a neutral background (#030705).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfefcwhite | #030705black |
| Foreground | #020e06black | #f7f8f7whitesmoke |
| Card | #f7fdf9mintcream | #050b07black |
| Card foreground | #010904black | #f9fafaghostwhite |
| Popover | #f7fdf9mintcream | #050b07black |
| Popover foreground | #010904black | #f9fafaghostwhite |
| Primary | #5be18amediumaquamarine | #5be18amediumaquamarine |
| Primary foreground | #020904black | #020904black |
| Secondary | #dfe1e0gainsboro | #28332cdarkslategray |
| Secondary foreground | #454a47darkslategray | #c0cec5silver |
| Muted | #d8e4dcgainsboro | #1b271fblack |
| Muted foreground | #536e5ddimgray | #91ac9adarkseagreen |
| Accent | #dfe1e0gainsboro | #28332cdarkslategray |
| Accent foreground | #454a47darkslategray | #c0cec5silver |
| Destructive | #b1270bfirebrick | #f03d19orangered |
| Destructive foreground | #fef3f1seashell | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #5be18amediumaquamarine | #5be18amediumaquamarine |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.35:1 | AAA |
| Text on card | 19.51:1 | AAA |
| Primary button | 12.05:1 | AAA |
| Secondary button | 6.90:1 | AA |
| Muted text | 4.27:1 | AA Large |
| Accent | 6.90:1 | AA |
| Destructive | 6.08:1 | AA |
| Text on background | 19.02:1 | AAA |
| Text on card | 19.03:1 | AAA |
| Primary button | 12.05:1 | AAA |
| Secondary button | 8.00:1 | AAA |
| Muted text | 6.29:1 | AA |
| Accent | 8.00:1 | AAA |
| Destructive | 3.89:1 | AA Large |
Paste this into your globals.css to use Essential in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.004 157.905);
--foreground: oklch(0.145 0.028 157.071);
--muted: oklch(0.908 0.017 157.578);
--muted-foreground: oklch(0.513 0.042 156.111);
--popover: oklch(0.988 0.008 157.823);
--popover-foreground: oklch(0.126 0.024 157.596);
--card: oklch(0.988 0.008 157.823);
--card-foreground: oklch(0.126 0.024 157.596);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.814 0.17 152.139);
--primary-foreground: oklch(0.125 0.022 157.637);
--secondary: oklch(0.909 0.003 157.926);
--secondary-foreground: oklch(0.402 0.007 157.603);
--accent: oklch(0.909 0.003 157.926);
--accent-foreground: oklch(0.402 0.007 157.603);
--destructive: oklch(0.498 0.178 32.569);
--destructive-foreground: oklch(0.972 0.012 31.069);
--ring: oklch(0.814 0.17 152.139);
--chart-1: oklch(0.814 0.17 152.139);
--chart-2: oklch(0.909 0.003 157.926);
--chart-3: oklch(0.909 0.003 157.926);
--chart-4: oklch(0.932 0.002 157.942);
--chart-5: oklch(0.821 0.176 151.901);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.121 0.013 157.786);
--foreground: oklch(0.978 0.002 157.936);
--muted: oklch(0.26 0.023 155.939);
--muted-foreground: oklch(0.718 0.039 156.779);
--popover: oklch(0.138 0.014 157.77);
--popover-foreground: oklch(0.985 0.002 157.953);
--card: oklch(0.138 0.014 157.77);
--card-foreground: oklch(0.985 0.002 157.953);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.814 0.17 152.139);
--primary-foreground: oklch(0.125 0.022 157.637);
--secondary: oklch(0.31 0.02 156.578);
--secondary-foreground: oklch(0.837 0.019 157.503);
--accent: oklch(0.31 0.02 156.578);
--accent-foreground: oklch(0.837 0.019 157.503);
--destructive: oklch(0.629 0.22 32.762);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.814 0.17 152.139);
--chart-1: oklch(0.814 0.17 152.139);
--chart-2: oklch(0.31 0.02 156.578);
--chart-3: oklch(0.31 0.02 156.578);
--chart-4: oklch(0.342 0.022 156.529);
--chart-5: oklch(0.821 0.176 151.901);
}