Essay for shadcn/ui

Essay is a shadcn/ui theme built around a vivid cyan primary color (#0ba3b7) with vivid green accents (#a3b70b). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid cyan primary (#0ba3b7) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#050f10black
#ffffffwhite
Card
#ffffffwhite
#000000black
Card foreground
#050f10black
#ffffffwhite
Popover
#ffffffwhite
#000000black
Popover foreground
#050f10black
#ffffffwhite
Primary
#0ba3b7lightseagreen
#0ba3b7lightseagreen
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#b70ba3mediumvioletred
#b70ba3mediumvioletred
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#f0e5eflavender
#1a0f19black
Muted foreground
#616161dimgray
#9e9e9edarkgray
Accent
#a3b70byellowgreen
#a3b70byellowgreen
Accent foreground
#000000black
#000000black
Destructive
#790c0cmaroon
#e92020crimson
Destructive foreground
#f9bebelightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0ba3b7lightseagreen
#0ba3b7lightseagreen

Contrast

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

Light mode
Text on background19.40:1AAA
Text on card19.40:1AAA
Primary button3.02:1AA Large
Secondary button5.84:1AA
Muted text5.06:1AA
Accent9.34:1AAA
Destructive7.04:1AAA
Dark mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button3.02:1AA Large
Secondary button5.84:1AA
Muted text6.96:1AA
Accent9.34:1AAA
Destructive4.47:1AA Large

CSS variables

Paste this into your globals.css to use Essay in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.156 0.016 205.338);
  --muted: oklch(0.934 0.018 329.35);
  --muted-foreground: oklch(0.492 0 180);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.156 0.016 205.338);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.156 0.016 205.338);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.656 0.112 210.345);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.538 0.235 334.562);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.739 0.169 117.425);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.368 0.141 27.82);
  --destructive-foreground: oklch(0.854 0.068 18.567);
  --ring: oklch(0.656 0.112 210.345);
  --chart-1: oklch(0.656 0.112 210.345);
  --chart-2: oklch(0.538 0.235 334.562);
  --chart-3: oklch(0.739 0.169 117.425);
  --chart-4: oklch(0.569 0.249 334.594);
  --chart-5: oklch(0.663 0.114 210.597);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.187 0.026 330.646);
  --muted-foreground: oklch(0.7 0 180);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0 0 0);
  --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.656 0.112 210.345);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.538 0.235 334.562);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.739 0.169 117.425);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.597 0.23 27.904);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.656 0.112 210.345);
  --chart-1: oklch(0.656 0.112 210.345);
  --chart-2: oklch(0.538 0.235 334.562);
  --chart-3: oklch(0.739 0.169 117.425);
  --chart-4: oklch(0.569 0.249 334.594);
  --chart-5: oklch(0.663 0.114 210.597);
}