Essential is a shadcn/ui theme built around a light yellow primary color (#f4ebbe) with light green accents (#e2f4be). The light mode uses a neutral background (#ffffff). Dark mode keeps the light yellow primary (#f4ebbe) on a yellow-tinted background (#0b0a04).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0b0a04black |
| Foreground | #110f03black | #fdfdfcwhite |
| Card | #ffffffwhite | #0b0a04black |
| Card foreground | #110f03black | #fdfdfcwhite |
| Popover | #ffffffwhite | #0b0a04black |
| Popover foreground | #110f03black | #fdfdfcwhite |
| Primary | #f4ebbebisque | #f4ebbebisque |
| Primary foreground | #161304black | #161304black |
| Secondary | #f4d0bepeachpuff | #f4d0bepeachpuff |
| Secondary foreground | #6c3113saddlebrown | #6c3113saddlebrown |
| Muted | #ebdad1gainsboro | #2e1d14black |
| Muted foreground | #524742darkslategray | #bdb2addarkgray |
| Accent | #e2f4bepalegoldenrod | #e2f4bepalegoldenrod |
| Accent foreground | #101604black | #101604black |
| Destructive | #831b0bmaroon | #ed4e35tomato |
| Destructive foreground | #facec7pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f4ebbebisque | #f4ebbebisque |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.20:1 | AAA |
| Text on card | 19.20:1 | AAA |
| Primary button | 15.42:1 | AAA |
| Secondary button | 6.98:1 | AA |
| Muted text | 6.59:1 | AA |
| Accent | 15.67:1 | AAA |
| Destructive | 6.88:1 | AA |
| Text on background | 19.47:1 | AAA |
| Text on card | 19.47:1 | AAA |
| Primary button | 15.42:1 | AAA |
| Secondary button | 6.98:1 | AA |
| Muted text | 7.79:1 | AAA |
| Accent | 15.67:1 | AAA |
| Destructive | 3.65:1 | AA Large |
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.166 0.024 99.862);
--muted: oklch(0.899 0.022 48.459);
--muted-foreground: oklch(0.408 0.017 48.275);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.166 0.024 99.862);
--card: oklch(1 0 180);
--card-foreground: oklch(0.166 0.024 99.862);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.935 0.059 97.981);
--primary-foreground: oklch(0.184 0.029 99.266);
--secondary: oklch(0.883 0.047 48.165);
--secondary-foreground: oklch(0.388 0.094 44.623);
--accent: oklch(0.939 0.072 122.767);
--accent-foreground: oklch(0.187 0.036 124.03);
--destructive: oklch(0.401 0.141 31.625);
--destructive-foreground: oklch(0.887 0.052 28.342);
--ring: oklch(0.935 0.059 97.981);
--chart-1: oklch(0.935 0.059 97.981);
--chart-2: oklch(0.883 0.047 48.165);
--chart-3: oklch(0.939 0.072 122.767);
--chart-4: oklch(0.906 0.037 48.288);
--chart-5: oklch(0.937 0.061 98.002);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.143 0.015 100.296);
--foreground: oklch(0.993 0.001 97.268);
--muted: oklch(0.25 0.031 47.4);
--muted-foreground: oklch(0.772 0.015 48.526);
--popover: oklch(0.143 0.015 100.296);
--popover-foreground: oklch(0.993 0.001 97.268);
--card: oklch(0.143 0.015 100.296);
--card-foreground: oklch(0.993 0.001 97.268);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.935 0.059 97.981);
--primary-foreground: oklch(0.184 0.029 99.266);
--secondary: oklch(0.883 0.047 48.165);
--secondary-foreground: oklch(0.388 0.094 44.623);
--accent: oklch(0.939 0.072 122.767);
--accent-foreground: oklch(0.187 0.036 124.03);
--destructive: oklch(0.642 0.2 31.534);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.935 0.059 97.981);
--chart-1: oklch(0.935 0.059 97.981);
--chart-2: oklch(0.883 0.047 48.165);
--chart-3: oklch(0.939 0.072 122.767);
--chart-4: oklch(0.906 0.037 48.288);
--chart-5: oklch(0.937 0.061 98.002);
}