Green Ghost for shadcn/ui

Green Ghost is a shadcn/ui theme built around a deep teal primary color (#16423c) with neutral gray accents (#c9c7cc). The light mode uses a neutral background (#fdfdfc). Dark mode keeps the deep teal primary (#16423c) on a neutral background (#050703).

Color palette

TokenLightDark
Background
#fdfdfcwhite
#050703black
Foreground
#030401black
#fafbf9snow
Card
#fdfdfcwhite
#1a1a1dblack
Card foreground
#030401black
#fafbf9snow
Popover
#fdfdfcwhite
#050703black
Popover foreground
#030401black
#fafbf9snow
Primary
#16423cdarkslategray
#16423cdarkslategray
Primary foreground
#e9efecwhitesmoke
#c4dad2lightgrey
Secondary
#6a9c89cadetblue
#c9c7ccsilver
Secondary foreground
#e9efecwhitesmoke
#302e33darkslategray
Muted
#ddd9e3gainsboro
#211c26black
Muted foreground
#44404adarkslategray
#bab5bfsilver
Accent
#c9c7ccsilver
#c9c7ccsilver
Accent foreground
#302e33darkslategray
#302e33darkslategray
Destructive
#b80000darkred
#b30b1efirebrick
Destructive foreground
#fee4ddmistyrose
#ffffffwhite
Border
#ebecealinen
#000000black
Input
#ebecealinen
#1a1b18black
Ring
#caccc7lightgrey
#caccc7lightgrey

Contrast

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

Light mode
Text on background20.22:1AAA
Text on card20.22:1AAA
Primary button9.59:1AAA
Secondary button2.67:1Fail
Muted text7.25:1AAA
Accent7.99:1AAA
Destructive5.71:1AA
Dark mode
Text on background19.47:1AAA
Text on card16.72:1AAA
Primary button7.61:1AAA
Secondary button7.99:1AAA
Muted text8.31:1AAA
Accent7.99:1AAA
Destructive7.06:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.003 126.462);
  --foreground: oklch(0.103 0.02 125.273);
  --muted: oklch(0.891 0.015 306.21);
  --muted-foreground: oklch(0.38 0.017 305.853);
  --popover: oklch(0.994 0.003 126.462);
  --popover-foreground: oklch(0.103 0.02 125.273);
  --card: oklch(0.994 0.003 126.462);
  --card-foreground: oklch(0.103 0.02 125.273);
  --border: oklch(0.941 0.003 126.468);
  --input: oklch(0.941 0.003 126.468);
  --primary: oklch(0.347 0.049 182.993);
  --primary-foreground: oklch(0.947 0.008 164.934);
  --secondary: oklch(0.652 0.061 168.707);
  --secondary-foreground: oklch(0.947 0.008 164.934);
  --accent: oklch(0.832 0.008 306.308);
  --accent-foreground: oklch(0.305 0.009 306.049);
  --destructive: oklch(0.491 0.202 29.234);
  --destructive-foreground: oklch(0.937 0.03 35.945);
  --ring: oklch(0.842 0.008 126.547);
  --chart-1: oklch(0.347 0.049 182.993);
  --chart-2: oklch(0.652 0.061 168.707);
  --chart-3: oklch(0.832 0.008 306.308);
  --chart-4: oklch(0.674 0.057 169.04);
  --chart-5: oklch(0.35 0.051 182.753);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.124 0.013 125.768);
  --foreground: oklch(0.986 0.002 126.458);
  --muted: oklch(0.236 0.021 305.279);
  --muted-foreground: oklch(0.781 0.014 306.194);
  --popover: oklch(0.124 0.013 125.768);
  --popover-foreground: oklch(0.986 0.002 126.458);
  --card: oklch(0.219 0.006 285.912);
  --card-foreground: oklch(0.986 0.002 126.458);
  --border: oklch(0 0 0);
  --input: oklch(0.219 0.005 126.734);
  --primary: oklch(0.347 0.049 182.993);
  --primary-foreground: oklch(0.87 0.026 171.862);
  --secondary: oklch(0.832 0.008 306.308);
  --secondary-foreground: oklch(0.305 0.009 306.049);
  --accent: oklch(0.832 0.008 306.308);
  --accent-foreground: oklch(0.305 0.009 306.049);
  --destructive: oklch(0.486 0.192 25.036);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.842 0.008 126.547);
  --chart-1: oklch(0.347 0.049 182.993);
  --chart-2: oklch(0.832 0.008 306.308);
  --chart-3: oklch(0.832 0.008 306.308);
  --chart-4: oklch(0.857 0.007 306.329);
  --chart-5: oklch(0.35 0.051 182.753);
}