Spirit for shadcn/ui

Spirit is a shadcn/ui theme built around a vivid blue primary color (#3195ed) with vivid indigo accents (#3137ed). The light mode uses a neutral background (#fbfdfd). Dark mode keeps the vivid blue primary (#3195ed) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fbfdfdwhite
#000000black
Foreground
#010305black
#f5f7f9whitesmoke
Card
#f8fafcghostwhite
#030303black
Card foreground
#000000black
#f8fafbghostwhite
Popover
#f8fafcghostwhite
#030303black
Popover foreground
#000000black
#f8fafbghostwhite
Primary
#3195eddodgerblue
#3195eddodgerblue
Primary foreground
#000000black
#000000black
Secondary
#31ede7turquoise
#31ede7turquoise
Secondary foreground
#074b49darkslategray
#074b49darkslategray
Muted
#edf7f7whitesmoke
#081212black
Muted foreground
#4d5c5bdimgray
#a3b2b2darkgray
Accent
#3137edroyalblue
#3137edroyalblue
Accent foreground
#ecedfdlavender
#ecedfdlavender
Destructive
#c10c06firebrick
#f8312acrimson
Destructive foreground
#fffafasnow
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#3195eddodgerblue
#3195eddodgerblue

Contrast

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

Light mode
Text on background20.19:1AAA
Text on card20.07:1AAA
Primary button6.65:1AA
Secondary button6.81:1AA
Muted text6.43:1AA
Accent6.25:1AA
Destructive6.11:1AA
Dark mode
Text on background19.55:1AAA
Text on card19.75:1AAA
Primary button6.65:1AA
Secondary button6.81:1AA
Muted text8.66:1AAA
Accent6.25:1AA
Destructive3.83:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.992 0.002 244.11);
  --foreground: oklch(0.089 0.013 233.59);
  --muted: oklch(0.969 0.011 194.583);
  --muted-foreground: oklch(0.461 0.019 194.04);
  --popover: oklch(0.984 0.003 244.132);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.984 0.003 244.132);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.656 0.159 249.446);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.858 0.14 191.295);
  --secondary-foreground: oklch(0.374 0.062 191.221);
  --accent: oklch(0.481 0.261 269.842);
  --accent-foreground: oklch(0.95 0.022 284.388);
  --destructive: oklch(0.513 0.205 29.325);
  --destructive-foreground: oklch(0.989 0.005 19.675);
  --ring: oklch(0.656 0.159 249.446);
  --chart-1: oklch(0.656 0.159 249.446);
  --chart-2: oklch(0.858 0.14 191.295);
  --chart-3: oklch(0.481 0.261 269.842);
  --chart-4: oklch(0.864 0.137 191.52);
  --chart-5: oklch(0.657 0.164 249.754);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.976 0.004 244.136);
  --muted: oklch(0.171 0.015 193.187);
  --muted-foreground: oklch(0.753 0.017 194.374);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(0.984 0.002 244.12);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.984 0.002 244.12);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.656 0.159 249.446);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.858 0.14 191.295);
  --secondary-foreground: oklch(0.374 0.062 191.221);
  --accent: oklch(0.481 0.261 269.842);
  --accent-foreground: oklch(0.95 0.022 284.388);
  --destructive: oklch(0.635 0.233 28.281);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.656 0.159 249.446);
  --chart-1: oklch(0.656 0.159 249.446);
  --chart-2: oklch(0.858 0.14 191.295);
  --chart-3: oklch(0.481 0.261 269.842);
  --chart-4: oklch(0.864 0.137 191.52);
  --chart-5: oklch(0.657 0.164 249.754);
}