Underlying Highlands Moss for shadcn/ui

Underlying Highlands Moss is a shadcn/ui theme built around a deep green primary color (#45570f) with muted light green accents (#dddfd7). The light mode uses a neutral background (#fbfcf8). Dark mode keeps the deep green primary (#45570f) on a green-tinted background (#090b05).

Color palette

TokenLightDark
Background
#fbfcf8snow
#090b05black
Foreground
#030401black
#f9faf5whitesmoke
Card
#fbfcf8snow
#090b05black
Card foreground
#030401black
#f9faf5whitesmoke
Popover
#fbfcf8snow
#090b05black
Popover foreground
#030401black
#f9faf5whitesmoke
Primary
#45570fdarkolivegreen
#45570fdarkolivegreen
Primary foreground
#def0a8palegoldenrod
#def0a8palegoldenrod
Secondary
#dddfd7gainsboro
#383d29darkslategray
Secondary foreground
#464a3bdarkslategray
#d1d6c2lightgrey
Muted
#eef1e4beige
#181b0eblack
Muted foreground
#4f5440darkolivegreen
#babfabsilver
Accent
#dddfd7gainsboro
#383d29darkslategray
Accent foreground
#464a3bdarkslategray
#d1d6c2lightgrey
Destructive
#ac3b06saddlebrown
#f65b13orangered
Destructive foreground
#ffffffwhite
#000000black
Border
#e6e7e4gainsboro
#252522darkslategray
Input
#e6e7e4gainsboro
#252522darkslategray
Ring
#45570fdarkolivegreen
#45570fdarkolivegreen

Contrast

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

Light mode
Text on background19.98:1AAA
Text on card19.98:1AAA
Primary button6.51:1AA
Secondary button6.79:1AA
Muted text6.85:1AA
Accent6.79:1AA
Destructive6.20:1AA
Dark mode
Text on background18.89:1AAA
Text on card18.89:1AAA
Primary button6.51:1AA
Secondary button7.58:1AAA
Muted text9.28:1AAA
Accent7.58:1AAA
Destructive6.43:1AA

CSS variables

Paste this into your globals.css to use Underlying Highlands Moss in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.006 117.94);
  --foreground: oklch(0.101 0.013 118.006);
  --muted: oklch(0.952 0.017 118.143);
  --muted-foreground: oklch(0.434 0.031 119.108);
  --popover: oklch(0.99 0.006 117.94);
  --popover-foreground: oklch(0.101 0.013 118.006);
  --card: oklch(0.99 0.006 117.94);
  --card-foreground: oklch(0.101 0.013 118.006);
  --border: oklch(0.926 0.003 117.891);
  --input: oklch(0.926 0.003 117.891);
  --primary: oklch(0.427 0.097 123.175);
  --primary-foreground: oklch(0.925 0.095 119.704);
  --secondary: oklch(0.901 0.011 118.036);
  --secondary-foreground: oklch(0.4 0.024 118.905);
  --accent: oklch(0.901 0.011 118.036);
  --accent-foreground: oklch(0.4 0.024 118.905);
  --destructive: oklch(0.509 0.158 39.574);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.427 0.097 123.175);
  --chart-1: oklch(0.427 0.097 123.175);
  --chart-2: oklch(0.901 0.011 118.036);
  --chart-3: oklch(0.901 0.011 118.036);
  --chart-4: oklch(0.922 0.008 117.986);
  --chart-5: oklch(0.432 0.099 123.366);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.143 0.015 117.996);
  --foreground: oklch(0.982 0.007 117.943);
  --muted: oklch(0.213 0.024 119.881);
  --muted-foreground: oklch(0.794 0.027 118.429);
  --popover: oklch(0.143 0.015 117.996);
  --popover-foreground: oklch(0.982 0.007 117.943);
  --card: oklch(0.143 0.015 117.996);
  --card-foreground: oklch(0.982 0.007 117.943);
  --border: oklch(0.264 0.007 118.27);
  --input: oklch(0.264 0.007 118.27);
  --primary: oklch(0.427 0.097 123.175);
  --primary-foreground: oklch(0.925 0.095 119.704);
  --secondary: oklch(0.348 0.033 119.529);
  --secondary-foreground: oklch(0.866 0.027 118.372);
  --accent: oklch(0.348 0.033 119.529);
  --accent-foreground: oklch(0.866 0.027 118.372);
  --destructive: oklch(0.669 0.203 40.031);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.427 0.097 123.175);
  --chart-1: oklch(0.427 0.097 123.175);
  --chart-2: oklch(0.348 0.033 119.529);
  --chart-3: oklch(0.348 0.033 119.529);
  --chart-4: oklch(0.382 0.037 119.573);
  --chart-5: oklch(0.432 0.099 123.366);
}