Mountainous for shadcn/ui

Mountainous is a shadcn/ui theme built around a green primary color (#9ad737) with neutral gray accents (#d2d4ce). The light mode uses a neutral background (#fafcf8). Dark mode keeps the green primary (#9ad737) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fafcf8snow
#000000black
Foreground
#000000black
#fafbf9snow
Card
#f8faf5whitesmoke
#030303black
Card foreground
#000000black
#fdfdfcwhite
Popover
#f8faf5whitesmoke
#030303black
Popover foreground
#000000black
#fdfdfcwhite
Primary
#9ad737yellowgreen
#9ad737yellowgreen
Primary foreground
#26370bdarkgreen
#26370bdarkgreen
Secondary
#e1e1e0gainsboro
#202419black
Secondary foreground
#484946darkslategray
#bbc4absilver
Muted
#e4e9ddgainsboro
#1d2216black
Muted foreground
#646d54dimgray
#a1ab92darkgray
Accent
#d2d4celightgrey
#303923darkslategray
Accent foreground
#393c34darkslategray
#cad4b9silver
Destructive
#e04000orangered
#ff4800orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#9ad737yellowgreen
#9ad737yellowgreen

Contrast

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

Light mode
Text on background20.33:1AAA
Text on card20.00:1AAA
Primary button7.46:1AAA
Secondary button6.91:1AA
Muted text4.41:1AA Large
Accent7.52:1AAA
Destructive4.28:1AA Large
Dark mode
Text on background20.23:1AAA
Text on card20.31:1AAA
Primary button7.46:1AAA
Secondary button8.72:1AAA
Muted text6.75:1AA
Accent7.85:1AAA
Destructive3.39:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.005 123.717);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.927 0.017 123.915);
  --muted-foreground: oklch(0.521 0.04 124.813);
  --popover: oklch(0.982 0.008 123.757);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.982 0.008 123.757);
  --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.81 0.194 128.756);
  --primary-foreground: oklch(0.313 0.07 128.138);
  --secondary: oklch(0.909 0.002 123.667);
  --secondary-foreground: oklch(0.403 0.005 123.82);
  --accent: oklch(0.867 0.009 123.796);
  --accent-foreground: oklch(0.351 0.014 124.234);
  --destructive: oklch(0.603 0.205 36.274);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.81 0.194 128.756);
  --chart-1: oklch(0.81 0.194 128.756);
  --chart-2: oklch(0.909 0.002 123.667);
  --chart-3: oklch(0.867 0.009 123.796);
  --chart-4: oklch(0.932 0.001 123.66);
  --chart-5: oklch(0.819 0.199 128.977);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.987 0.004 123.696);
  --muted: oklch(0.244 0.024 125.136);
  --muted-foreground: oklch(0.726 0.037 124.409);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(0.994 0.002 123.668);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.994 0.002 123.668);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.81 0.194 128.756);
  --primary-foreground: oklch(0.313 0.07 128.138);
  --secondary: oklch(0.253 0.021 124.91);
  --secondary-foreground: oklch(0.807 0.037 124.326);
  --accent: oklch(0.33 0.039 125.491);
  --accent-foreground: oklch(0.856 0.038 124.308);
  --destructive: oklch(0.663 0.227 36.019);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.81 0.194 128.756);
  --chart-1: oklch(0.81 0.194 128.756);
  --chart-2: oklch(0.253 0.021 124.91);
  --chart-3: oklch(0.33 0.039 125.491);
  --chart-4: oklch(0.288 0.025 124.991);
  --chart-5: oklch(0.819 0.199 128.977);
}