Spinach for shadcn/ui

Spinach is a shadcn/ui theme built around a light teal primary color (#b8eeef) with light red accents (#efbab8). The light mode uses a neutral background (#ffffff). Dark mode keeps the light teal primary (#b8eeef) on a teal-tinted background (#050f0f).

Color palette

TokenLightDark
Background
#ffffffwhite
#050f0fblack
Foreground
#040b0cblack
#f9fbfbghostwhite
Card
#fcfcfcsnow
#061313black
Card foreground
#020808black
#fcfdfdwhite
Popover
#ffffffwhite
#050f0fblack
Popover foreground
#040b0cblack
#f9fbfbghostwhite
Primary
#b8eeefpaleturquoise
#b8eeefpaleturquoise
Primary foreground
#030c0dblack
#030c0dblack
Secondary
#efbab8lightpink
#efbab8lightpink
Secondary foreground
#601815maroon
#601815maroon
Muted
#e2dfdfgainsboro
#201d1dblack
Muted foreground
#494646darkslategray
#b9b6b6silver
Accent
#efbab8lightpink
#efbab8lightpink
Accent foreground
#601815maroon
#601815maroon
Destructive
#913808saddlebrown
#f26a21chocolate
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b8eeefpaleturquoise
#b8eeefpaleturquoise

Contrast

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

Light mode
Text on background19.84:1AAA
Text on card19.74:1AAA
Primary button15.49:1AAA
Secondary button7.55:1AAA
Muted text7.03:1AAA
Accent7.55:1AAA
Destructive7.58:1AAA
Dark mode
Text on background18.68:1AAA
Text on card18.57:1AAA
Primary button15.49:1AAA
Secondary button7.55:1AAA
Muted text8.31:1AAA
Accent7.55:1AAA
Destructive6.87:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.142 0.015 197.929);
  --muted: oklch(0.905 0.004 19.665);
  --muted-foreground: oklch(0.397 0.004 19.737);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.142 0.015 197.929);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.124 0.013 197.757);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.912 0.055 198.873);
  --primary-foreground: oklch(0.144 0.017 197.725);
  --secondary: oklch(0.836 0.062 20.766);
  --secondary-foreground: oklch(0.33 0.105 26.673);
  --accent: oklch(0.836 0.062 20.766);
  --accent-foreground: oklch(0.33 0.105 26.673);
  --destructive: oklch(0.459 0.131 42.869);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.912 0.055 198.873);
  --chart-1: oklch(0.912 0.055 198.873);
  --chart-2: oklch(0.836 0.062 20.766);
  --chart-3: oklch(0.836 0.062 20.766);
  --chart-4: oklch(0.864 0.051 20.493);
  --chart-5: oklch(0.914 0.057 198.848);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.158 0.016 198.234);
  --foreground: oklch(0.986 0.002 199.575);
  --muted: oklch(0.234 0.006 19.944);
  --muted-foreground: oklch(0.779 0.003 19.662);
  --popover: oklch(0.158 0.016 198.234);
  --popover-foreground: oklch(0.986 0.002 199.575);
  --card: oklch(0.174 0.019 198.358);
  --card-foreground: oklch(0.993 0.001 199.59);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.912 0.055 198.873);
  --primary-foreground: oklch(0.144 0.017 197.725);
  --secondary: oklch(0.836 0.062 20.766);
  --secondary-foreground: oklch(0.33 0.105 26.673);
  --accent: oklch(0.836 0.062 20.766);
  --accent-foreground: oklch(0.33 0.105 26.673);
  --destructive: oklch(0.683 0.185 44.107);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.912 0.055 198.873);
  --chart-1: oklch(0.912 0.055 198.873);
  --chart-2: oklch(0.836 0.062 20.766);
  --chart-3: oklch(0.836 0.062 20.766);
  --chart-4: oklch(0.864 0.051 20.493);
  --chart-5: oklch(0.914 0.057 198.848);
}