Marsh Creek Chameleon for shadcn/ui

Marsh Creek Chameleon is a shadcn/ui theme built around a muted teal primary color (#6c847f) with muted yellow accents (#847f6c). The light mode uses a neutral background (#f6fdfc). Dark mode keeps the muted teal primary (#6c847f) on a teal-tinted background (#040b0a).

Color palette

TokenLightDark
Background
#f6fdfcmintcream
#040b0ablack
Foreground
#040c0ablack
#fcfdfdwhite
Card
#f2fcfamintcream
#060f0dblack
Card foreground
#020807black
#ffffffwhite
Popover
#f2fcfamintcream
#060f0dblack
Popover foreground
#020807black
#ffffffwhite
Primary
#6c847fslategray
#6c847fslategray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#7f6c84gray
#7f6c84gray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#decfe2gainsboro
#2c1d30darkslategray
Muted foreground
#575058dimgray
#ada7afdarkgray
Accent
#847f6cgray
#847f6cgray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#7a1701maroon
#fe3406orangered
Destructive foreground
#ffbdaelightpink
#ffffffwhite
Border
#dee3e2gainsboro
#171c1bblack
Input
#dee3e2gainsboro
#171c1bblack
Ring
#6c847fslategray
#6c847fslategray

Contrast

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

Light mode
Text on background19.23:1AAA
Text on card19.36:1AAA
Primary button4.01:1AA Large
Secondary button4.80:1AA
Muted text5.25:1AA
Accent4.02:1AA Large
Destructive6.75:1AA
Dark mode
Text on background19.47:1AAA
Text on card19.44:1AAA
Primary button4.01:1AA Large
Secondary button4.80:1AA
Muted text6.75:1AA
Accent4.02:1AA Large
Destructive3.68:1AA Large

CSS variables

Paste this into your globals.css to use Marsh Creek Chameleon in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.007 181.857);
  --foreground: oklch(0.143 0.016 181.471);
  --muted: oklch(0.873 0.031 318.878);
  --muted-foreground: oklch(0.44 0.016 318.878);
  --popover: oklch(0.984 0.011 181.75);
  --popover-foreground: oklch(0.124 0.014 181.99);
  --card: oklch(0.984 0.011 181.75);
  --card-foreground: oklch(0.124 0.014 181.99);
  --border: oklch(0.912 0.006 181.88);
  --input: oklch(0.912 0.006 181.88);
  --primary: oklch(0.592 0.029 180.651);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.557 0.043 318.861);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.594 0.028 94.303);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.377 0.137 33.552);
  --destructive-foreground: oklch(0.854 0.08 32.987);
  --ring: oklch(0.592 0.029 180.651);
  --chart-1: oklch(0.592 0.029 180.651);
  --chart-2: oklch(0.557 0.043 318.861);
  --chart-3: oklch(0.594 0.028 94.303);
  --chart-4: oklch(0.582 0.045 318.861);
  --chart-5: oklch(0.599 0.037 180.24);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.141 0.013 181.779);
  --foreground: oklch(0.993 0.001 182.028);
  --muted: oklch(0.257 0.041 318.8);
  --muted-foreground: oklch(0.735 0.014 318.884);
  --popover: oklch(0.157 0.015 180.062);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.157 0.015 180.062);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.22 0.007 181.14);
  --input: oklch(0.22 0.007 181.14);
  --primary: oklch(0.592 0.029 180.651);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.557 0.043 318.861);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.594 0.028 94.303);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.645 0.239 32.394);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.592 0.029 180.651);
  --chart-1: oklch(0.592 0.029 180.651);
  --chart-2: oklch(0.557 0.043 318.861);
  --chart-3: oklch(0.594 0.028 94.303);
  --chart-4: oklch(0.582 0.045 318.861);
  --chart-5: oklch(0.599 0.037 180.24);
}