Essay is a shadcn/ui theme built around a muted yellow primary color (#c3c4b0) with muted indigo accents (#b1b0c4). The light mode uses a neutral background (#fdfdf6). Dark mode keeps the muted yellow primary (#c3c4b0) on a yellow-tinted background (#0c0c03).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfdf6snow | #0c0c03black |
| Foreground | #0c0d02black | #fdfdfcwhite |
| Card | #fcfcf2floralwhite | #101004black |
| Card foreground | #080902black | #ffffffwhite |
| Popover | #fcfcf2floralwhite | #101004black |
| Popover foreground | #080902black | #ffffffwhite |
| Primary | #c3c4b0silver | #c3c4b0silver |
| Primary foreground | #26261cblack | #26261cblack |
| Secondary | #b1b0c4silver | #b1b0c4silver |
| Secondary foreground | #1d1c26black | #1d1c26black |
| Muted | #efeef1whitesmoke | #0e0e11black |
| Muted foreground | #373649darkslategray | #b7b6c9silver |
| Accent | #b1b0c4silver | #b1b0c4silver |
| Accent foreground | #1d1c26black | #1d1c26black |
| Destructive | #831307maroon | #f43a25orangered |
| Destructive foreground | #fcc6c0pink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #c3c4b0silver | #c3c4b0silver |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.18:1 | AAA |
| Text on card | 19.42:1 | AAA |
| Primary button | 8.64:1 | AAA |
| Secondary button | 7.91:1 | AAA |
| Muted text | 10.19:1 | AAA |
| Accent | 7.91:1 | AAA |
| Destructive | 6.78:1 | AA |
| Text on background | 19.27:1 | AAA |
| Text on card | 19.10:1 | AAA |
| Primary button | 8.64:1 | AAA |
| Secondary button | 7.91:1 | AAA |
| Muted text | 9.67:1 | AAA |
| Accent | 7.91:1 | AAA |
| Destructive | 3.85:1 | AA Large |
Paste this into your globals.css to use Essay in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.009 108.876);
--foreground: oklch(0.154 0.025 111.01);
--muted: oklch(0.951 0.003 288.645);
--muted-foreground: oklch(0.343 0.033 286.793);
--popover: oklch(0.989 0.013 108.96);
--popover-foreground: oklch(0.133 0.022 110.77);
--card: oklch(0.989 0.013 108.96);
--card-foreground: oklch(0.133 0.022 110.77);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.815 0.028 109.342);
--primary-foreground: oklch(0.265 0.018 109.914);
--secondary: oklch(0.764 0.029 287.981);
--secondary-foreground: oklch(0.232 0.019 287.106);
--accent: oklch(0.764 0.029 287.981);
--accent-foreground: oklch(0.232 0.019 287.106);
--destructive: oklch(0.393 0.147 30.582);
--destructive-foreground: oklch(0.872 0.062 25.731);
--ring: oklch(0.815 0.028 109.342);
--chart-1: oklch(0.815 0.028 109.342);
--chart-2: oklch(0.764 0.029 287.981);
--chart-3: oklch(0.764 0.029 287.981);
--chart-4: oklch(0.791 0.026 288.092);
--chart-5: oklch(0.821 0.034 109.458);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.151 0.022 110.779);
--foreground: oklch(0.994 0.002 108.739);
--muted: oklch(0.165 0.005 288.128);
--muted-foreground: oklch(0.782 0.027 288.056);
--popover: oklch(0.17 0.025 111.085);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.17 0.025 111.085);
--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.815 0.028 109.342);
--primary-foreground: oklch(0.265 0.018 109.914);
--secondary: oklch(0.764 0.029 287.981);
--secondary-foreground: oklch(0.232 0.019 287.106);
--accent: oklch(0.764 0.029 287.981);
--accent-foreground: oklch(0.232 0.019 287.106);
--destructive: oklch(0.632 0.224 30.438);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.815 0.028 109.342);
--chart-1: oklch(0.815 0.028 109.342);
--chart-2: oklch(0.764 0.029 287.981);
--chart-3: oklch(0.764 0.029 287.981);
--chart-4: oklch(0.791 0.026 288.092);
--chart-5: oklch(0.821 0.034 109.458);
}