Ghost for shadcn/ui

Ghost is a shadcn/ui theme built around a vivid deep green primary color (#00600f) with vivid deep teal accents (#00603f). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep green primary (#00600f) on a green-tinted background (#070e08).

Color palette

TokenLightDark
Background
#ffffffwhite
#070e08black
Foreground
#051006black
#f8fbf9mintcream
Card
#ffffffwhite
#070e08black
Card foreground
#051006black
#f8fbf9mintcream
Popover
#ffffffwhite
#070e08black
Popover foreground
#051006black
#f8fbf9mintcream
Primary
#00600fdarkgreen
#00600fdarkgreen
Primary foreground
#94fea4palegreen
#94fea4palegreen
Secondary
#226000darkgreen
#226000darkgreen
Secondary foreground
#bafe94palegreen
#bafe94palegreen
Muted
#ebf3e7beige
#10180cblack
Muted foreground
#3f433ddarkslategray
#bec2bcsilver
Accent
#00603fdarkslategray
#00603fdarkslategray
Accent foreground
#94fed9aquamarine
#94fed9aquamarine
Destructive
#93100bdarkred
#ee221bcrimson
Destructive foreground
#fcd6d4mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#00600fdarkgreen
#00600fdarkgreen

Contrast

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

Light mode
Text on background19.38:1AAA
Text on card19.38:1AAA
Primary button6.29:1AA
Secondary button6.41:1AA
Muted text8.89:1AAA
Accent6.31:1AA
Destructive6.77:1AA
Dark mode
Text on background18.77:1AAA
Text on card18.77:1AAA
Primary button6.29:1AA
Secondary button6.41:1AA
Muted text10.07:1AAA
Accent6.31:1AA
Destructive4.30:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.157 0.028 148.697);
  --muted: oklch(0.955 0.017 134.32);
  --muted-foreground: oklch(0.377 0.012 134.401);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.157 0.028 148.697);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.157 0.028 148.697);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.426 0.138 143.942);
  --primary-foreground: oklch(0.912 0.158 147.647);
  --secondary: oklch(0.433 0.135 138.434);
  --secondary-foreground: oklch(0.929 0.153 135.362);
  --accent: oklch(0.433 0.096 160.985);
  --accent-foreground: oklch(0.924 0.112 169.239);
  --destructive: oklch(0.424 0.164 28.924);
  --destructive-foreground: oklch(0.907 0.043 20.311);
  --ring: oklch(0.426 0.138 143.942);
  --chart-1: oklch(0.426 0.138 143.942);
  --chart-2: oklch(0.433 0.135 138.434);
  --chart-3: oklch(0.433 0.096 160.985);
  --chart-4: oklch(0.479 0.15 138.654);
  --chart-5: oklch(0.43 0.14 143.885);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.153 0.018 149.229);
  --foreground: oklch(0.986 0.004 150.189);
  --muted: oklch(0.196 0.025 135.03);
  --muted-foreground: oklch(0.81 0.01 134.288);
  --popover: oklch(0.153 0.018 149.229);
  --popover-foreground: oklch(0.986 0.004 150.189);
  --card: oklch(0.153 0.018 149.229);
  --card-foreground: oklch(0.986 0.004 150.189);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.426 0.138 143.942);
  --primary-foreground: oklch(0.912 0.158 147.647);
  --secondary: oklch(0.433 0.135 138.434);
  --secondary-foreground: oklch(0.929 0.153 135.362);
  --accent: oklch(0.433 0.096 160.985);
  --accent-foreground: oklch(0.924 0.112 169.239);
  --destructive: oklch(0.607 0.233 28.848);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.426 0.138 143.942);
  --chart-1: oklch(0.426 0.138 143.942);
  --chart-2: oklch(0.433 0.135 138.434);
  --chart-3: oklch(0.433 0.096 160.985);
  --chart-4: oklch(0.479 0.15 138.654);
  --chart-5: oklch(0.43 0.14 143.885);
}