Essay is a shadcn/ui theme built around a vivid green primary color (#83cb10) with vivid green accents (#26cb10). The light mode uses a neutral background (#fafcf8). Dark mode keeps the vivid green primary (#83cb10) on a green-tinted background (#0b0d07).
| Token | Light | Dark |
|---|---|---|
| Background | #fafcf8snow | #0b0d07black |
| Foreground | #000000black | #fdfdfcwhite |
| Card | #f8faf5whitesmoke | #0e1109black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #fafcf8snow | #0b0d07black |
| Popover foreground | #000000black | #fdfdfcwhite |
| Primary | #83cb10yellowgreen | #83cb10yellowgreen |
| Primary foreground | #090e01black | #090e01black |
| Secondary | #cbb510goldenrod | #cbb510goldenrod |
| Secondary foreground | #0e0d01black | #0e0d01black |
| Muted | #f6f5efwhitesmoke | #101009black |
| Muted foreground | #4e4e4bdarkslategray | #b4b4b1darkgray |
| Accent | #26cb10limegreen | #26cb10limegreen |
| Accent foreground | #030e01black | #030e01black |
| Destructive | #df4807orangered | #f8530dorangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #83cb10yellowgreen | #83cb10yellowgreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.30:1 | AAA |
| Text on card | 19.96:1 | AAA |
| Primary button | 9.77:1 | AAA |
| Secondary button | 9.43:1 | AAA |
| Muted text | 7.64:1 | AAA |
| Accent | 9.01:1 | AAA |
| Destructive | 4.16:1 | AA Large |
| Text on background | 19.15:1 | AAA |
| Text on card | 19.07:1 | AAA |
| Primary button | 9.77:1 | AAA |
| Secondary button | 9.43:1 | AAA |
| Muted text | 9.19:1 | AAA |
| Accent | 9.01:1 | AAA |
| Destructive | 3.37:1 | AA Large |
Paste this into your globals.css to use Essay in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.005 123.709);
--foreground: oklch(0 0 0);
--muted: oklch(0.969 0.009 100.467);
--muted-foreground: oklch(0.422 0.004 100.49);
--popover: oklch(0.988 0.005 123.709);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.982 0.007 123.744);
--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.765 0.205 130.706);
--primary-foreground: oklch(0.154 0.033 123.576);
--secondary: oklch(0.769 0.157 100.447);
--secondary-foreground: oklch(0.155 0.029 104.143);
--accent: oklch(0.733 0.241 141.846);
--accent-foreground: oklch(0.146 0.04 139.592);
--destructive: oklch(0.609 0.197 37.901);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.765 0.205 130.706);
--chart-1: oklch(0.765 0.205 130.706);
--chart-2: oklch(0.769 0.157 100.447);
--chart-3: oklch(0.733 0.241 141.846);
--chart-4: oklch(0.808 0.166 100.415);
--chart-5: oklch(0.773 0.209 130.941);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.156 0.015 124.343);
--foreground: oklch(0.994 0.002 123.669);
--muted: oklch(0.17 0.013 101.385);
--muted-foreground: oklch(0.768 0.004 100.407);
--popover: oklch(0.156 0.015 124.343);
--popover-foreground: oklch(0.994 0.002 123.669);
--card: oklch(0.17 0.017 125.099);
--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.765 0.205 130.706);
--primary-foreground: oklch(0.154 0.033 123.576);
--secondary: oklch(0.769 0.157 100.447);
--secondary-foreground: oklch(0.155 0.029 104.143);
--accent: oklch(0.733 0.241 141.846);
--accent-foreground: oklch(0.146 0.04 139.592);
--destructive: oklch(0.662 0.211 38.281);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.765 0.205 130.706);
--chart-1: oklch(0.765 0.205 130.706);
--chart-2: oklch(0.769 0.157 100.447);
--chart-3: oklch(0.733 0.241 141.846);
--chart-4: oklch(0.808 0.166 100.415);
--chart-5: oklch(0.773 0.209 130.941);
}