Spine for shadcn/ui

Spine is a shadcn/ui theme built around a light green primary color (#d8efd7) with light green accents (#d7efe1). The light mode uses a neutral background (#fbfefb). Dark mode keeps the light green primary (#d8efd7) on a green-tinted background (#070e06).

Color palette

TokenLightDark
Background
#fbfefbwhite
#070e06black
Foreground
#051004black
#ffffffwhite
Card
#fbfefbwhite
#070e06black
Card foreground
#051004black
#ffffffwhite
Popover
#fbfefbwhite
#070e06black
Popover foreground
#051004black
#ffffffwhite
Primary
#d8efd7gainsboro
#d8efd7gainsboro
Primary foreground
#0e210dblack
#0e210dblack
Secondary
#e5efd7beige
#e5efd7beige
Secondary foreground
#18210dblack
#18210dblack
Muted
#e6e9e2gainsboro
#1a1d16black
Muted foreground
#414738darkslategray
#c0c7b8silver
Accent
#d7efe1gainsboro
#d7efe1gainsboro
Accent foreground
#0d2116black
#0d2116black
Destructive
#960f0ddarkred
#ec2a27crimson
Destructive foreground
#fcdad9mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#d8efd7gainsboro
#d8efd7gainsboro

Contrast

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

Light mode
Text on background19.09:1AAA
Text on card19.09:1AAA
Primary button13.91:1AAA
Secondary button14.00:1AAA
Muted text7.83:1AAA
Accent13.92:1AAA
Destructive6.80:1AA
Dark mode
Text on background19.53:1AAA
Text on card19.53:1AAA
Primary button13.91:1AAA
Secondary button14.00:1AAA
Muted text9.84:1AAA
Accent13.92:1AAA
Destructive4.24:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.994 0.005 143.609);
  --foreground: oklch(0.157 0.031 142.034);
  --muted: oklch(0.929 0.009 125.874);
  --muted-foreground: oklch(0.388 0.027 126.68);
  --popover: oklch(0.994 0.005 143.609);
  --popover-foreground: oklch(0.157 0.031 142.034);
  --card: oklch(0.994 0.005 143.609);
  --card-foreground: oklch(0.157 0.031 142.034);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.929 0.041 143.401);
  --primary-foreground: oklch(0.225 0.045 142.54);
  --secondary: oklch(0.938 0.035 126.238);
  --secondary-foreground: oklch(0.233 0.038 128.25);
  --accent: oklch(0.931 0.032 160.953);
  --accent-foreground: oklch(0.227 0.035 157.247);
  --destructive: oklch(0.43 0.167 28.517);
  --destructive-foreground: oklch(0.916 0.038 19.017);
  --ring: oklch(0.929 0.041 143.401);
  --chart-1: oklch(0.929 0.041 143.401);
  --chart-2: oklch(0.938 0.035 126.238);
  --chart-3: oklch(0.931 0.032 160.953);
  --chart-4: oklch(0.955 0.025 126.093);
  --chart-5: oklch(0.93 0.044 143.385);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.153 0.021 142.562);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.224 0.013 126.546);
  --muted-foreground: oklch(0.82 0.022 126.104);
  --popover: oklch(0.153 0.021 142.562);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.153 0.021 142.562);
  --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.929 0.041 143.401);
  --primary-foreground: oklch(0.225 0.045 142.54);
  --secondary: oklch(0.938 0.035 126.238);
  --secondary-foreground: oklch(0.233 0.038 128.25);
  --accent: oklch(0.931 0.032 160.953);
  --accent-foreground: oklch(0.227 0.035 157.247);
  --destructive: oklch(0.609 0.227 27.883);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.929 0.041 143.401);
  --chart-1: oklch(0.929 0.041 143.401);
  --chart-2: oklch(0.938 0.035 126.238);
  --chart-3: oklch(0.931 0.032 160.953);
  --chart-4: oklch(0.955 0.025 126.093);
  --chart-5: oklch(0.93 0.044 143.385);
}