Ecosystem for shadcn/ui

Ecosystem is a shadcn/ui theme built around a muted indigo primary color (#524f69) with muted green accents (#4f6952). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the muted indigo primary (#524f69) on a neutral background (#030208).

Color palette

TokenLightDark
Background
#fbfbfeghostwhite
#030208black
Foreground
#070614black
#fcfcfdwhite
Card
#fbfbfeghostwhite
#030208black
Card foreground
#070614black
#fcfcfdwhite
Popover
#fbfbfeghostwhite
#030208black
Popover foreground
#070614black
#fcfcfdwhite
Primary
#524f69dimgray
#524f69dimgray
Primary foreground
#f4f3f6whitesmoke
#f4f3f6whitesmoke
Secondary
#69524fdimgray
#69524fdimgray
Secondary foreground
#f6f4f3whitesmoke
#f6f4f3whitesmoke
Muted
#eddbd9gainsboro
#261412black
Muted foreground
#463b39darkslategray
#c6bab9silver
Accent
#4f6952dimgray
#4f6952dimgray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#670e0amaroon
#e01f15crimson
Destructive foreground
#f7afablightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#524f69dimgray
#524f69dimgray

Contrast

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

Light mode
Text on background19.44:1AAA
Text on card19.44:1AAA
Primary button7.10:1AAA
Secondary button6.60:1AA
Muted text8.09:1AAA
Accent6.07:1AA
Destructive7.11:1AAA
Dark mode
Text on background20.11:1AAA
Text on card20.11:1AAA
Primary button7.10:1AAA
Secondary button6.60:1AA
Muted text9.33:1AAA
Accent6.07:1AA
Destructive4.79:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.004 290.933);
  --foreground: oklch(0.134 0.031 287.07);
  --muted: oklch(0.905 0.02 25.18);
  --muted-foreground: oklch(0.363 0.016 25.42);
  --popover: oklch(0.989 0.004 290.933);
  --popover-foreground: oklch(0.134 0.031 287.07);
  --card: oklch(0.989 0.004 290.933);
  --card-foreground: oklch(0.134 0.031 287.07);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.44 0.042 289.131);
  --primary-foreground: oklch(0.966 0.004 290.94);
  --secondary: oklch(0.46 0.031 25.694);
  --secondary-foreground: oklch(0.968 0.003 25.013);
  --accent: oklch(0.492 0.048 147.447);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.332 0.122 28.88);
  --destructive-foreground: oklch(0.821 0.086 22.468);
  --ring: oklch(0.44 0.042 289.131);
  --chart-1: oklch(0.44 0.042 289.131);
  --chart-2: oklch(0.46 0.031 25.694);
  --chart-3: oklch(0.492 0.048 147.447);
  --chart-4: oklch(0.486 0.034 25.703);
  --chart-5: oklch(0.433 0.051 288.65);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.098 0.019 288.678);
  --foreground: oklch(0.991 0.002 290.973);
  --muted: oklch(0.216 0.03 26.673);
  --muted-foreground: oklch(0.798 0.013 25.131);
  --popover: oklch(0.098 0.019 288.678);
  --popover-foreground: oklch(0.991 0.002 290.973);
  --card: oklch(0.098 0.019 288.678);
  --card-foreground: oklch(0.991 0.002 290.973);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.44 0.042 289.131);
  --primary-foreground: oklch(0.966 0.004 290.94);
  --secondary: oklch(0.46 0.031 25.694);
  --secondary-foreground: oklch(0.968 0.003 25.013);
  --accent: oklch(0.492 0.048 147.447);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.579 0.224 29.323);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.44 0.042 289.131);
  --chart-1: oklch(0.44 0.042 289.131);
  --chart-2: oklch(0.46 0.031 25.694);
  --chart-3: oklch(0.492 0.048 147.447);
  --chart-4: oklch(0.486 0.034 25.703);
  --chart-5: oklch(0.433 0.051 288.65);
}