Essence is a shadcn/ui theme built around a neutral gray primary color (#5d5b5c) with muted light pink accents (#d3c5ce). The light mode uses a neutral background (#fcf8fb). Dark mode keeps the neutral gray primary (#5d5b5c) on a pink-tinted background (#0c0309).
| Token | Light | Dark |
|---|---|---|
| Background | #fcf8fbsnow | #0c0309black |
| Foreground | #16040fblack | #fdfcfdwhite |
| Card | #fcf8fbsnow | #0c0309black |
| Card foreground | #16040fblack | #fdfcfdwhite |
| Popover | #fcf8fbsnow | #0c0309black |
| Popover foreground | #16040fblack | #fdfcfdwhite |
| Primary | #5d5b5cdimgray | #5d5b5cdimgray |
| Primary foreground | #f5f5f5whitesmoke | #f5f5f5whitesmoke |
| Secondary | #d3c5cethistle | #2c262adarkslategray |
| Secondary foreground | #3a2c35darkslategray | #c7bdc3silver |
| Muted | #e4d8e0gainsboro | #271b23black |
| Muted foreground | #4f404adarkslategray | #bfb0basilver |
| Accent | #d3c5cethistle | #2c262adarkslategray |
| Accent foreground | #3a2c35darkslategray | #c7bdc3silver |
| Destructive | #6b2c0bsaddlebrown | #d15715chocolate |
| Destructive foreground | #f7c9b0peachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #5d5b5cdimgray | #5d5b5cdimgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.81:1 | AAA |
| Text on card | 18.81:1 | AAA |
| Primary button | 6.19:1 | AA |
| Secondary button | 7.94:1 | AAA |
| Muted text | 7.00:1 | AAA |
| Accent | 7.94:1 | AAA |
| Destructive | 7.00:1 | AAA |
| Text on background | 19.84:1 | AAA |
| Text on card | 19.84:1 | AAA |
| Primary button | 6.19:1 | AA |
| Secondary button | 8.14:1 | AAA |
| Muted text | 7.99:1 | AAA |
| Accent | 8.14:1 | AAA |
| Destructive | 4.14:1 | AA Large |
Paste this into your globals.css to use Essence in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.982 0.006 338.12);
--foreground: oklch(0.147 0.042 341.867);
--muted: oklch(0.893 0.018 338.39);
--muted-foreground: oklch(0.39 0.027 339.37);
--popover: oklch(0.982 0.006 338.12);
--popover-foreground: oklch(0.147 0.042 341.867);
--card: oklch(0.982 0.006 338.12);
--card-foreground: oklch(0.147 0.042 341.867);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.473 0.003 338.117);
--primary-foreground: oklch(0.969 0 337.991);
--secondary: oklch(0.837 0.02 338.482);
--secondary-foreground: oklch(0.312 0.026 339.635);
--accent: oklch(0.837 0.02 338.482);
--accent-foreground: oklch(0.312 0.026 339.635);
--destructive: oklch(0.377 0.099 44.59);
--destructive-foreground: oklch(0.87 0.063 49.813);
--ring: oklch(0.473 0.003 338.117);
--chart-1: oklch(0.473 0.003 338.117);
--chart-2: oklch(0.837 0.02 338.482);
--chart-3: oklch(0.837 0.02 338.482);
--chart-4: oklch(0.862 0.017 338.393);
--chart-5: oklch(0.469 0.012 338.511);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.122 0.026 338.662);
--foreground: oklch(0.992 0.001 338.01);
--muted: oklch(0.241 0.025 339.986);
--muted-foreground: oklch(0.773 0.023 338.587);
--popover: oklch(0.122 0.026 338.662);
--popover-foreground: oklch(0.992 0.001 338.01);
--card: oklch(0.122 0.026 338.662);
--card-foreground: oklch(0.992 0.001 338.01);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.473 0.003 338.117);
--primary-foreground: oklch(0.969 0 337.991);
--secondary: oklch(0.276 0.012 338.885);
--secondary-foreground: oklch(0.808 0.014 338.343);
--accent: oklch(0.276 0.012 338.885);
--accent-foreground: oklch(0.808 0.014 338.343);
--destructive: oklch(0.605 0.17 43.285);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.473 0.003 338.117);
--chart-1: oklch(0.473 0.003 338.117);
--chart-2: oklch(0.276 0.012 338.885);
--chart-3: oklch(0.276 0.012 338.885);
--chart-4: oklch(0.306 0.014 338.923);
--chart-5: oklch(0.469 0.012 338.511);
}