Essence is a shadcn/ui theme built around a muted blue primary color (#546d7d) with neutral gray accents (#d8d9d9). The light mode uses a neutral background (#fbfdfe). Dark mode keeps the muted blue primary (#546d7d) on a blue-tinted background (#060b0e).
| Token | Light | Dark |
|---|---|---|
| Background | #fbfdfewhite | #060b0eblack |
| Foreground | #000000black | #ffffffwhite |
| Card | #f7fbfdghostwhite | #080e12black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #f7fbfdghostwhite | #080e12black |
| Popover foreground | #000000black | #ffffffwhite |
| Primary | #546d7ddimgray | #546d7ddimgray |
| Primary foreground | #ffffffwhite | #ffffffwhite |
| Secondary | #d8d9d9gainsboro | #202122black |
| Secondary foreground | #3f4040darkslategray | #b9babcsilver |
| Muted | #e9eef1lavender | #0e1316black |
| Muted foreground | #525252darkslategray | #adadaddarkgray |
| Accent | #d8d9d9gainsboro | #202122black |
| Accent foreground | #3f4040darkslategray | #b9babcsilver |
| Destructive | #8a2e0fsaddlebrown | #e6501echocolate |
| Destructive foreground | #fadbd1bisque | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #546d7ddimgray | #546d7ddimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.55:1 | AAA |
| Text on card | 20.11:1 | AAA |
| Primary button | 5.41:1 | AA |
| Secondary button | 7.35:1 | AAA |
| Muted text | 6.69:1 | AA |
| Accent | 7.35:1 | AAA |
| Destructive | 6.52:1 | AA |
| Text on background | 19.75:1 | AAA |
| Text on card | 19.42:1 | AAA |
| Primary button | 5.41:1 | AA |
| Secondary button | 8.27:1 | AAA |
| Muted text | 8.34:1 | AAA |
| Accent | 8.27:1 | AAA |
| Destructive | 3.79:1 | AA Large |
Paste this into your globals.css to use Essence in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.002 234.54);
--foreground: oklch(0 0 0);
--muted: oklch(0.946 0.007 234.615);
--muted-foreground: oklch(0.437 0 180);
--popover: oklch(0.985 0.005 234.575);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.985 0.005 234.575);
--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.522 0.04 235.815);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.885 0.001 234.517);
--secondary-foreground: oklch(0.371 0.001 234.558);
--accent: oklch(0.885 0.001 234.517);
--accent-foreground: oklch(0.371 0.001 234.558);
--destructive: oklch(0.433 0.131 37.344);
--destructive-foreground: oklch(0.915 0.037 39.313);
--ring: oklch(0.522 0.04 235.815);
--chart-1: oklch(0.522 0.04 235.815);
--chart-2: oklch(0.885 0.001 234.517);
--chart-3: oklch(0.885 0.001 234.517);
--chart-4: oklch(0.908 0.001 234.515);
--chart-5: oklch(0.523 0.045 236.058);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.146 0.012 232.971);
--foreground: oklch(1 0 180);
--muted: oklch(0.182 0.011 235.459);
--muted-foreground: oklch(0.749 0 158.199);
--popover: oklch(0.159 0.013 235.176);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.159 0.013 235.176);
--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.522 0.04 235.815);
--primary-foreground: oklch(1 0 180);
--secondary: oklch(0.248 0.002 234.596);
--secondary-foreground: oklch(0.789 0.002 234.55);
--accent: oklch(0.248 0.002 234.596);
--accent-foreground: oklch(0.789 0.002 234.55);
--destructive: oklch(0.631 0.195 37.148);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.522 0.04 235.815);
--chart-1: oklch(0.522 0.04 235.815);
--chart-2: oklch(0.248 0.002 234.596);
--chart-3: oklch(0.248 0.002 234.596);
--chart-4: oklch(0.28 0.002 234.601);
--chart-5: oklch(0.523 0.045 236.058);
}