Spine for shadcn/ui

Spine is a shadcn/ui theme built around a deep cyan primary color (#0c3036) with deep green accents (#30360c). The light mode uses a neutral background (#f7fcfd). Dark mode keeps the deep cyan primary (#0c3036) on a neutral background (#010404).

Color palette

TokenLightDark
Background
#f7fcfdghostwhite
#010404black
Foreground
#020708black
#f9fafbghostwhite
Card
#f2fbfcaliceblue
#020708black
Card foreground
#010404black
#fcfdfdwhite
Popover
#f2fbfcaliceblue
#020708black
Popover foreground
#010404black
#fcfdfdwhite
Primary
#0c3036darkslategray
#0c3036darkslategray
Primary foreground
#3cbcd3mediumturquoise
#3cbcd3mediumturquoise
Secondary
#360c30midnightblue
#360c30midnightblue
Secondary foreground
#e68fd9plum
#e68fd9plum
Muted
#ede8eclavender
#171216black
Muted foreground
#675b65dimgray
#a498a2darkgray
Accent
#30360cdarkgreen
#30360cdarkgreen
Accent foreground
#bcd33cyellowgreen
#bcd33cyellowgreen
Destructive
#db3a00orangered
#ff5314orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0c3036darkslategray
#0c3036darkslategray

Contrast

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

Light mode
Text on background19.59:1AAA
Text on card19.57:1AAA
Primary button6.26:1AA
Secondary button7.41:1AAA
Muted text5.32:1AA
Accent7.55:1AAA
Destructive4.52:1AA
Dark mode
Text on background19.72:1AAA
Text on card19.87:1AAA
Primary button6.26:1AA
Secondary button7.41:1AAA
Muted text6.69:1AA
Accent7.55:1AAA
Destructive3.23: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.988 0.006 209.452);
  --foreground: oklch(0.122 0.014 205.87);
  --muted: oklch(0.936 0.008 330.36);
  --muted-foreground: oklch(0.486 0.021 330.801);
  --popover: oklch(0.982 0.009 209.446);
  --popover-foreground: oklch(0.097 0.011 205.87);
  --card: oklch(0.982 0.009 209.446);
  --card-foreground: oklch(0.097 0.011 205.87);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.286 0.041 211.365);
  --primary-foreground: oklch(0.736 0.113 211.98);
  --secondary: oklch(0.244 0.083 334.319);
  --secondary-foreground: oklch(0.762 0.14 332.437);
  --accent: oklch(0.317 0.062 117.394);
  --accent-foreground: oklch(0.822 0.171 117.815);
  --destructive: oklch(0.59 0.204 35.509);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.286 0.041 211.365);
  --chart-1: oklch(0.286 0.041 211.365);
  --chart-2: oklch(0.244 0.083 334.319);
  --chart-3: oklch(0.317 0.062 117.394);
  --chart-4: oklch(0.277 0.097 334.51);
  --chart-5: oklch(0.288 0.042 211.563);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.096 0.01 206.192);
  --foreground: oklch(0.985 0.001 209.465);
  --muted: oklch(0.19 0.012 331.058);
  --muted-foreground: oklch(0.694 0.02 330.605);
  --popover: oklch(0.122 0.012 206.192);
  --popover-foreground: oklch(0.993 0.001 209.467);
  --card: oklch(0.122 0.012 206.192);
  --card-foreground: oklch(0.993 0.001 209.467);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.286 0.041 211.365);
  --primary-foreground: oklch(0.736 0.113 211.98);
  --secondary: oklch(0.244 0.083 334.319);
  --secondary-foreground: oklch(0.762 0.14 332.437);
  --accent: oklch(0.317 0.062 117.394);
  --accent-foreground: oklch(0.822 0.171 117.815);
  --destructive: oklch(0.674 0.218 37.055);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.286 0.041 211.365);
  --chart-1: oklch(0.286 0.041 211.365);
  --chart-2: oklch(0.244 0.083 334.319);
  --chart-3: oklch(0.317 0.062 117.394);
  --chart-4: oklch(0.277 0.097 334.51);
  --chart-5: oklch(0.288 0.042 211.563);
}