Essay for shadcn/ui

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).

Color palette

TokenLightDark
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

Contrast

WCAG 2 contrast ratios between each background and its foreground color.

Light mode
Text on background20.30:1AAA
Text on card19.96:1AAA
Primary button9.77:1AAA
Secondary button9.43:1AAA
Muted text7.64:1AAA
Accent9.01:1AAA
Destructive4.16:1AA Large
Dark mode
Text on background19.15:1AAA
Text on card19.07:1AAA
Primary button9.77:1AAA
Secondary button9.43:1AAA
Muted text9.19:1AAA
Accent9.01:1AAA
Destructive3.37:1AA Large

CSS variables

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);
}