Essential is a shadcn/ui theme built around a muted deep red primary color (#221616) with muted deep teal accents (#162222). The light mode uses a neutral background (#fcf8f8). Dark mode keeps the muted deep red primary (#221616) on a red-tinted background (#0b0504).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf8f8snow | #0b0504black |
| Foreground | #000000black | #fdfcfcsnow |
| Card | #fbf4f4lavenderblush | #0f0606black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fbf4f4lavenderblush | #0f0606black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #221616black | #221616black |
| Primary foreground | #c5a6a5darkgray | #c5a6a5darkgray |
| Secondary | #162222black | #162222black |
| Secondary foreground | #a5c4c5lightsteelblue | #a5c4c5lightsteelblue |
| Muted | #d9e2e3gainsboro | #1c2626black |
| Muted foreground | #565d5ddimgray | #a2a9a9darkgray |
| Accent | #162222black | #162222black |
| Accent foreground | #a5c4c5lightsteelblue | #a5c4c5lightsteelblue |
| Destructive | #a42a0efirebrick | #ec4b27chocolate |
| Destructive foreground | #fdebe8linen | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #221616black | #221616black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.89:1 | AAA |
| Text on card | 19.35:1 | AAA |
| Primary button | 7.82:1 | AAA |
| Secondary button | 8.80:1 | AAA |
| Muted text | 5.12:1 | AA |
| Accent | 8.80:1 | AAA |
| Destructive | 6.24:1 | AA |
| Text on background | 19.79:1 | AAA |
| Text on card | 20.03:1 | AAA |
| Primary button | 7.82:1 | AAA |
| Secondary button | 8.80:1 | AAA |
| Muted text | 6.49:1 | AA |
| Accent | 8.80:1 | AAA |
| Destructive | 3.73:1 | AA Large |
Paste this into your globals.css to use Essential in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.005 19.673);
--foreground: oklch(0 0 0);
--muted: oklch(0.907 0.01 199.451);
--muted-foreground: oklch(0.471 0.009 199.359);
--popover: oklch(0.973 0.007 19.709);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.973 0.007 19.709);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.217 0.02 21.043);
--primary-foreground: oklch(0.752 0.037 20.343);
--secondary: oklch(0.24 0.017 198.775);
--secondary-foreground: oklch(0.798 0.034 199.066);
--accent: oklch(0.24 0.017 198.775);
--accent-foreground: oklch(0.798 0.034 199.066);
--destructive: oklch(0.476 0.163 33.499);
--destructive-foreground: oklch(0.954 0.02 32.675);
--ring: oklch(0.217 0.02 21.043);
--chart-1: oklch(0.217 0.02 21.043);
--chart-2: oklch(0.24 0.017 198.775);
--chart-3: oklch(0.24 0.017 198.775);
--chart-4: oklch(0.276 0.02 198.732);
--chart-5: oklch(0.216 0.022 21.289);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.123 0.015 22.385);
--foreground: oklch(0.992 0.001 19.623);
--muted: oklch(0.259 0.014 198.954);
--muted-foreground: oklch(0.73 0.008 199.46);
--popover: oklch(0.136 0.017 22.343);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.136 0.017 22.343);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.217 0.02 21.043);
--primary-foreground: oklch(0.752 0.037 20.343);
--secondary: oklch(0.24 0.017 198.775);
--secondary-foreground: oklch(0.798 0.034 199.066);
--accent: oklch(0.24 0.017 198.775);
--accent-foreground: oklch(0.798 0.034 199.066);
--destructive: oklch(0.637 0.203 33.918);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.217 0.02 21.043);
--chart-1: oklch(0.217 0.02 21.043);
--chart-2: oklch(0.24 0.017 198.775);
--chart-3: oklch(0.24 0.017 198.775);
--chart-4: oklch(0.276 0.02 198.732);
--chart-5: oklch(0.216 0.022 21.289);
}