Creature for shadcn/ui

Creature is a shadcn/ui theme built around a vivid deep green primary color (#051702) with muted green accents (#b6c6b3). The light mode uses a neutral background (#fcfdfc). Dark mode keeps the vivid deep green primary (#051702) on a neutral background (#040703).

Color palette

TokenLightDark
Background
#fcfdfcwhite
#040703black
Foreground
#010401black
#ffffffwhite
Card
#f9fbf8mintcream
#050b05black
Card foreground
#000000black
#ffffffwhite
Popover
#f9fbf8mintcream
#050b05black
Popover foreground
#000000black
#ffffffwhite
Primary
#051702black
#051702black
Primary foreground
#29d312limegreen
#29d312limegreen
Secondary
#cfd3cflightgrey
#131613black
Secondary foreground
#363b35darkslategray
#a8b4a7darkgray
Muted
#edf4ecwhitesmoke
#0c130bblack
Muted foreground
#546052dimgray
#a0ad9fdarkgray
Accent
#b6c6b3silver
#222c20darkslategray
Accent foreground
#20291fblack
#b7c9b5silver
Destructive
#9c0d0ddarkred
#f04242tomato
Destructive foreground
#fcdedemistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#051702black
#051702black

Contrast

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

Light mode
Text on background20.22:1AAA
Text on card20.23:1AAA
Primary button9.19:1AAA
Secondary button7.59:1AAA
Muted text5.89:1AA
Accent8.37:1AAA
Destructive6.74:1AA
Dark mode
Text on background20.25:1AAA
Text on card19.90:1AAA
Primary button9.19:1AAA
Secondary button8.46:1AAA
Muted text8.03:1AAA
Accent8.28:1AAA
Destructive3.77:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.003 142.104);
  --foreground: oklch(0.098 0.02 140.167);
  --muted: oklch(0.959 0.013 142.065);
  --muted-foreground: oklch(0.475 0.027 141.913);
  --popover: oklch(0.987 0.005 142.095);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.987 0.005 142.095);
  --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.183 0.052 140.159);
  --primary-foreground: oklch(0.755 0.248 141.836);
  --secondary: oklch(0.864 0.008 142.083);
  --secondary-foreground: oklch(0.345 0.012 141.996);
  --accent: oklch(0.809 0.031 141.979);
  --accent-foreground: oklch(0.268 0.022 141.827);
  --destructive: oklch(0.44 0.173 28.331);
  --destructive-foreground: oklch(0.926 0.034 17.776);
  --ring: oklch(0.183 0.052 140.159);
  --chart-1: oklch(0.183 0.052 140.159);
  --chart-2: oklch(0.864 0.008 142.083);
  --chart-3: oklch(0.809 0.031 141.979);
  --chart-4: oklch(0.887 0.006 142.088);
  --chart-5: oklch(0.184 0.053 140.088);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.015 140.942);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.178 0.02 141.725);
  --muted-foreground: oklch(0.733 0.025 141.997);
  --popover: oklch(0.138 0.018 140.945);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.138 0.018 140.945);
  --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.183 0.052 140.159);
  --primary-foreground: oklch(0.755 0.248 141.836);
  --secondary: oklch(0.196 0.008 141.974);
  --secondary-foreground: oklch(0.757 0.022 142.011);
  --accent: oklch(0.28 0.027 141.784);
  --accent-foreground: oklch(0.818 0.034 141.968);
  --destructive: oklch(0.636 0.21 25.487);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.183 0.052 140.159);
  --chart-1: oklch(0.183 0.052 140.159);
  --chart-2: oklch(0.196 0.008 141.974);
  --chart-3: oklch(0.28 0.027 141.784);
  --chart-4: oklch(0.23 0.01 141.958);
  --chart-5: oklch(0.184 0.053 140.088);
}