Ecosystem for shadcn/ui

Ecosystem is a shadcn/ui theme built around a deep blue primary color (#0b142d) with deep green accents (#142d0b). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep blue primary (#0b142d) on a neutral background (#030407).

Color palette

TokenLightDark
Background
#ffffffwhite
#030407black
Foreground
#050810black
#fcfcfdwhite
Card
#fcfcfcsnow
#05060ablack
Card foreground
#04060cblack
#ffffffwhite
Popover
#fcfcfcsnow
#05060ablack
Popover foreground
#04060cblack
#ffffffwhite
Primary
#0b142dblack
#0b142dblack
Primary foreground
#89a0e1cornflowerblue
#89a0e1cornflowerblue
Secondary
#2d0b14black
#2d0b14black
Secondary foreground
#e189a0palevioletred
#e189a0palevioletred
Muted
#e5cdd3lightgrey
#321a21black
Muted foreground
#686465dimgray
#9b9798darkgray
Accent
#142d0bblack
#142d0bblack
Accent foreground
#5fcd37limegreen
#5fcd37limegreen
Destructive
#9c2102darkred
#f63404orangered
Destructive foreground
#fedbd2bisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0b142dblack
#0b142dblack

Contrast

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

Light mode
Text on background20.02:1AAA
Text on card19.82:1AAA
Primary button7.08:1AAA
Secondary button7.08:1AAA
Muted text3.87:1AA Large
Accent7.29:1AAA
Destructive6.19:1AA
Dark mode
Text on background19.96:1AAA
Text on card20.22:1AAA
Primary button7.08:1AAA
Secondary button7.08:1AAA
Muted text5.56:1AA
Accent7.29:1AAA
Destructive3.87:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.133 0.019 264.516);
  --muted: oklch(0.869 0.029 359.706);
  --muted-foreground: oklch(0.507 0.005 359.087);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.121 0.016 263.251);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.121 0.016 263.251);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.199 0.051 266.737);
  --primary-foreground: oklch(0.714 0.099 268.505);
  --secondary: oklch(0.211 0.056 6.8);
  --secondary-foreground: oklch(0.728 0.111 2.993);
  --accent: oklch(0.267 0.064 138.31);
  --accent-foreground: oklch(0.755 0.21 138.854);
  --destructive: oklch(0.452 0.162 33.579);
  --destructive-foreground: oklch(0.918 0.042 34.324);
  --ring: oklch(0.199 0.051 266.737);
  --chart-1: oklch(0.199 0.051 266.737);
  --chart-2: oklch(0.211 0.056 6.8);
  --chart-3: oklch(0.267 0.064 138.31);
  --chart-4: oklch(0.242 0.068 7.546);
  --chart-5: oklch(0.198 0.054 266.525);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.109 0.01 265.683);
  --foreground: oklch(0.992 0.001 270.11);
  --muted: oklch(0.254 0.04 3.13);
  --muted-foreground: oklch(0.68 0.005 358.994);
  --popover: oklch(0.125 0.011 265.689);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.125 0.011 265.689);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.199 0.051 266.737);
  --primary-foreground: oklch(0.714 0.099 268.505);
  --secondary: oklch(0.211 0.056 6.8);
  --secondary-foreground: oklch(0.728 0.111 2.993);
  --accent: oklch(0.267 0.064 138.31);
  --accent-foreground: oklch(0.755 0.21 138.854);
  --destructive: oklch(0.632 0.232 32.853);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.199 0.051 266.737);
  --chart-1: oklch(0.199 0.051 266.737);
  --chart-2: oklch(0.211 0.056 6.8);
  --chart-3: oklch(0.267 0.064 138.31);
  --chart-4: oklch(0.242 0.068 7.546);
  --chart-5: oklch(0.198 0.054 266.525);
}