Inquisitive Fir Spruce Green for shadcn/ui

Inquisitive Fir Spruce Green is a shadcn/ui theme built around a neutral gray primary color (#6d7868) with muted light green accents (#e7ebe5). The light mode uses a neutral background (#f9fdf7). Dark mode keeps the neutral gray primary (#6d7868) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f9fdf7mintcream
#000000black
Foreground
#040901black
#fcfdfcwhite
Card
#f9fdf7mintcream
#000000black
Card foreground
#040901black
#fcfdfcwhite
Popover
#f9fdf7mintcream
#000000black
Popover foreground
#040901black
#fcfdfcwhite
Primary
#6d7868dimgray
#6d7868dimgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#e7ebe5beige
#141613black
Secondary foreground
#4b5945darkolivegreen
#abb5a6darkgray
Muted
#e4eae1gainsboro
#181e15black
Muted foreground
#5f7057dimgray
#97a88fdarkseagreen
Accent
#e7ebe5beige
#141613black
Accent foreground
#4b5945darkolivegreen
#abb5a6darkgray
Destructive
#c7360afirebrick
#e9400corangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e8e9e7linen
#1c1d1bblack
Input
#e8e9e7linen
#1c1d1bblack
Ring
#6d7868dimgray
#6d7868dimgray

Contrast

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

Light mode
Text on background19.48:1AAA
Text on card19.48:1AAA
Primary button4.62:1AA
Secondary button6.18:1AA
Muted text4.35:1AA Large
Accent6.18:1AA
Destructive5.30:1AA
Dark mode
Text on background20.59:1AAA
Text on card20.59:1AAA
Primary button4.62:1AA
Secondary button8.56:1AAA
Muted text6.72:1AA
Accent8.56:1AAA
Destructive4.05:1AA Large

CSS variables

Paste this into your globals.css to use Inquisitive Fir Spruce Green in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.008 135.462);
  --foreground: oklch(0.128 0.027 133.362);
  --muted: oklch(0.93 0.014 135.492);
  --muted-foreground: oklch(0.524 0.045 135.826);
  --popover: oklch(0.988 0.008 135.462);
  --popover-foreground: oklch(0.128 0.027 133.362);
  --card: oklch(0.988 0.008 135.462);
  --card-foreground: oklch(0.128 0.027 133.362);
  --border: oklch(0.933 0.003 135.444);
  --input: oklch(0.933 0.003 135.444);
  --primary: oklch(0.559 0.027 135.642);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.935 0.009 135.469);
  --secondary-foreground: oklch(0.447 0.037 135.813);
  --accent: oklch(0.935 0.009 135.469);
  --accent-foreground: oklch(0.447 0.037 135.813);
  --destructive: oklch(0.55 0.187 35.076);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.559 0.027 135.642);
  --chart-1: oklch(0.559 0.027 135.642);
  --chart-2: oklch(0.935 0.009 135.469);
  --chart-3: oklch(0.935 0.009 135.469);
  --chart-4: oklch(0.957 0.006 135.455);
  --chart-5: oklch(0.565 0.038 135.736);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.993 0.001 135.433);
  --muted: oklch(0.226 0.02 135.834);
  --muted-foreground: oklch(0.712 0.042 135.691);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.993 0.001 135.433);
  --card: oklch(0 0 0);
  --card-foreground: oklch(0.993 0.001 135.433);
  --border: oklch(0.23 0.006 135.542);
  --input: oklch(0.23 0.006 135.542);
  --primary: oklch(0.559 0.027 135.642);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.197 0.008 135.611);
  --secondary-foreground: oklch(0.76 0.023 135.562);
  --accent: oklch(0.197 0.008 135.611);
  --accent-foreground: oklch(0.76 0.023 135.562);
  --destructive: oklch(0.618 0.212 34.9);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.559 0.027 135.642);
  --chart-1: oklch(0.559 0.027 135.642);
  --chart-2: oklch(0.197 0.008 135.611);
  --chart-3: oklch(0.197 0.008 135.611);
  --chart-4: oklch(0.232 0.011 135.634);
  --chart-5: oklch(0.565 0.038 135.736);
}