Small Mountain Fig for shadcn/ui

Small Mountain Fig is a shadcn/ui theme built around a muted deep indigo primary color (#393a46) with muted indigo accents (#acadc8). The light mode uses a neutral background (#f7f7fd). Dark mode keeps the muted deep indigo primary (#393a46) on an indigo-tinted background (#05050a).

Color palette

TokenLightDark
Background
#f7f7fdghostwhite
#05050ablack
Foreground
#000000black
#f5f5fawhitesmoke
Card
#f3f4fbwhitesmoke
#07070eblack
Card foreground
#000000black
#f8f8fbghostwhite
Popover
#f3f4fbwhitesmoke
#07070eblack
Popover foreground
#000000black
#f8f8fbghostwhite
Primary
#393a46darkslategray
#393a46darkslategray
Primary foreground
#d5d5ddgainsboro
#d5d5ddgainsboro
Secondary
#c5c5d3lightgrey
#1f2028black
Secondary foreground
#2c2c3adarkslategray
#b5b5c5silver
Muted
#d8d9eegainsboro
#111227black
Muted foreground
#424257darkslategray
#a8a8bddarkgray
Accent
#acadc8silver
#30304bdarkslategray
Accent foreground
#1b1b28black
#cdcedflightgrey
Destructive
#bf4b08chocolate
#f77d36coral
Destructive foreground
#ffffffwhite
#000000black
Border
#e0e1e5gainsboro
#1e1e24black
Input
#e0e1e5gainsboro
#1e1e24black
Ring
#393a46darkslategray
#393a46darkslategray

Contrast

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

Light mode
Text on background19.72:1AAA
Text on card19.11:1AAA
Primary button7.72:1AAA
Secondary button8.05:1AAA
Muted text7.00:1AAA
Accent7.74:1AAA
Destructive4.97:1AA
Dark mode
Text on background18.70:1AAA
Text on card18.96:1AAA
Primary button7.72:1AAA
Secondary button8.03:1AAA
Muted text7.90:1AAA
Accent8.17:1AAA
Destructive7.91:1AAA

CSS variables

Paste this into your globals.css to use Small Mountain Fig in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.979 0.007 285.493);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.89 0.029 285.029);
  --muted-foreground: oklch(0.388 0.036 283.853);
  --popover: oklch(0.968 0.01 285.427);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.968 0.01 285.427);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.91 0.007 285.485);
  --input: oklch(0.91 0.007 285.485);
  --primary: oklch(0.352 0.022 284.461);
  --primary-foreground: oklch(0.875 0.01 285.406);
  --secondary: oklch(0.828 0.019 285.189);
  --secondary-foreground: oklch(0.299 0.025 284.001);
  --accent: oklch(0.756 0.039 284.666);
  --accent-foreground: oklch(0.227 0.025 283.45);
  --destructive: oklch(0.561 0.163 42.98);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.352 0.022 284.461);
  --chart-1: oklch(0.352 0.022 284.461);
  --chart-2: oklch(0.828 0.019 285.189);
  --chart-3: oklch(0.756 0.039 284.666);
  --chart-4: oklch(0.854 0.016 285.269);
  --chart-5: oklch(0.346 0.028 284.057);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.119 0.014 283.159);
  --foreground: oklch(0.972 0.006 285.51);
  --muted: oklch(0.193 0.042 281.005);
  --muted-foreground: oklch(0.739 0.03 284.864);
  --popover: oklch(0.132 0.016 283.09);
  --popover-foreground: oklch(0.981 0.004 285.547);
  --card: oklch(0.132 0.016 283.09);
  --card-foreground: oklch(0.981 0.004 285.547);
  --border: oklch(0.239 0.011 284.751);
  --input: oklch(0.239 0.011 284.751);
  --primary: oklch(0.352 0.022 284.461);
  --primary-foreground: oklch(0.875 0.01 285.406);
  --secondary: oklch(0.245 0.016 284.394);
  --secondary-foreground: oklch(0.778 0.022 285.099);
  --accent: oklch(0.322 0.047 282.693);
  --accent-foreground: oklch(0.855 0.024 285.098);
  --destructive: oklch(0.718 0.17 47.354);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.352 0.022 284.461);
  --chart-1: oklch(0.352 0.022 284.461);
  --chart-2: oklch(0.245 0.016 284.394);
  --chart-3: oklch(0.322 0.047 282.693);
  --chart-4: oklch(0.274 0.019 284.321);
  --chart-5: oklch(0.346 0.028 284.057);
}