Essential for shadcn/ui

Essential is a shadcn/ui theme built around a muted green primary color (#697963) with neutral gray accents (#e3e4e2). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted green primary (#697963) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#ffffffwhite
#000000black
Foreground
#050d02black
#f9fcf8mintcream
Card
#ffffffwhite
#000000black
Card foreground
#050d02black
#f9fcf8mintcream
Popover
#ffffffwhite
#000000black
Popover foreground
#050d02black
#f9fcf8mintcream
Primary
#697963dimgray
#697963dimgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#e3e4e2gainsboro
#232622black
Secondary foreground
#494b48darkslategray
#bbc1b9silver
Muted
#f2f4f1whitesmoke
#0c0e0bblack
Muted foreground
#40483cdarkslategray
#bac3b7silver
Accent
#e3e4e2gainsboro
#232622black
Accent foreground
#494b48darkslategray
#bbc1b9silver
Destructive
#913b0dsaddlebrown
#ec6922chocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#697963dimgray
#697963dimgray

Contrast

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

Light mode
Text on background19.72:1AAA
Text on card19.72:1AAA
Primary button4.67:1AA
Secondary button6.88:1AA
Muted text8.57:1AAA
Accent6.88:1AA
Destructive7.37:1AAA
Dark mode
Text on background20.30:1AAA
Text on card20.30:1AAA
Primary button4.67:1AA
Secondary button8.36:1AAA
Muted text10.67:1AAA
Accent8.36:1AAA
Destructive6.60:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.147 0.033 134.653);
  --muted: oklch(0.964 0.005 136.623);
  --muted-foreground: oklch(0.391 0.023 136.791);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.147 0.033 134.653);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.147 0.033 134.653);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.555 0.038 136.828);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.916 0.002 136.615);
  --secondary-foreground: oklch(0.411 0.006 136.649);
  --accent: oklch(0.916 0.002 136.615);
  --accent-foreground: oklch(0.411 0.006 136.649);
  --destructive: oklch(0.465 0.128 43.623);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.555 0.038 136.828);
  --chart-1: oklch(0.555 0.038 136.828);
  --chart-2: oklch(0.916 0.002 136.615);
  --chart-3: oklch(0.916 0.002 136.615);
  --chart-4: oklch(0.939 0.001 136.613);
  --chart-5: oklch(0.561 0.049 136.898);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.987 0.006 136.626);
  --muted: oklch(0.161 0.007 136.748);
  --muted-foreground: oklch(0.806 0.019 136.68);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.987 0.006 136.626);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.987 0.006 136.626);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.555 0.038 136.828);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.263 0.009 136.713);
  --secondary-foreground: oklch(0.803 0.013 136.656);
  --accent: oklch(0.263 0.009 136.713);
  --accent-foreground: oklch(0.803 0.013 136.656);
  --destructive: oklch(0.672 0.179 44.352);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.555 0.038 136.828);
  --chart-1: oklch(0.555 0.038 136.828);
  --chart-2: oklch(0.263 0.009 136.713);
  --chart-3: oklch(0.263 0.009 136.713);
  --chart-4: oklch(0.295 0.011 136.719);
  --chart-5: oklch(0.561 0.049 136.898);
}