Spine for shadcn/ui

Spine is a shadcn/ui theme built around a vivid green primary color (#44f373) with vivid orange accents (#f37344). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid green primary (#44f373) on a green-tinted background (#070e08).

Color palette

TokenLightDark
Background
#ffffffwhite
#070e08black
Foreground
#041107black
#fcfdfcwhite
Card
#ffffffwhite
#070e08black
Card foreground
#041107black
#fcfdfcwhite
Popover
#ffffffwhite
#070e08black
Popover foreground
#041107black
#fcfdfcwhite
Primary
#44f373mediumseagreen
#44f373mediumseagreen
Primary foreground
#000502black
#000502black
Secondary
#7344f3mediumslateblue
#7344f3mediumslateblue
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#d6d0e7gainsboro
#1e182fblack
Muted foreground
#605a72dimgray
#938da5lightslategray
Accent
#f37344tomato
#f37344tomato
Accent foreground
#050200black
#050200black
Destructive
#d3110dfirebrick
#f23e3atomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#44f373mediumseagreen
#44f373mediumseagreen

Contrast

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

Light mode
Text on background19.29:1AAA
Text on card19.29:1AAA
Primary button14.00:1AAA
Secondary button5.45:1AA
Muted text4.37:1AA Large
Accent7.22:1AAA
Destructive5.45:1AA
Dark mode
Text on background19.17:1AAA
Text on card19.17:1AAA
Primary button14.00:1AAA
Secondary button5.45:1AA
Muted text5.35:1AA
Accent7.22:1AAA
Destructive3.79:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.159 0.029 152.764);
  --muted: oklch(0.869 0.032 297.924);
  --muted-foreground: oklch(0.482 0.04 297.112);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.159 0.029 152.764);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.159 0.029 152.764);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.85 0.222 147.945);
  --primary-foreground: oklch(0.1 0.023 153.608);
  --secondary: oklch(0.549 0.243 287.726);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.699 0.17 39.884);
  --accent-foreground: oklch(0.088 0.018 55.536);
  --destructive: oklch(0.549 0.219 28.927);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.85 0.222 147.945);
  --chart-1: oklch(0.85 0.222 147.945);
  --chart-2: oklch(0.549 0.243 287.726);
  --chart-3: oklch(0.699 0.17 39.884);
  --chart-4: oklch(0.578 0.228 289.552);
  --chart-5: oklch(0.857 0.227 147.757);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.153 0.017 153.498);
  --foreground: oklch(0.993 0.001 154.507);
  --muted: oklch(0.23 0.044 294.988);
  --muted-foreground: oklch(0.656 0.037 297.585);
  --popover: oklch(0.153 0.017 153.498);
  --popover-foreground: oklch(0.993 0.001 154.507);
  --card: oklch(0.153 0.017 153.498);
  --card-foreground: oklch(0.993 0.001 154.507);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.85 0.222 147.945);
  --primary-foreground: oklch(0.1 0.023 153.608);
  --secondary: oklch(0.549 0.243 287.726);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.699 0.17 39.884);
  --accent-foreground: oklch(0.088 0.018 55.536);
  --destructive: oklch(0.636 0.218 26.709);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.85 0.222 147.945);
  --chart-1: oklch(0.85 0.222 147.945);
  --chart-2: oklch(0.549 0.243 287.726);
  --chart-3: oklch(0.699 0.17 39.884);
  --chart-4: oklch(0.578 0.228 289.552);
  --chart-5: oklch(0.857 0.227 147.757);
}