Spiritual for shadcn/ui

Spiritual is a shadcn/ui theme built around a vivid red primary color (#f76464) with vivid orange accents (#f7ad64). The light mode uses a neutral background (#fdf7f7). Dark mode keeps the vivid red primary (#f76464) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fdf7f7snow
#000000black
Foreground
#040101black
#fbf8f8snow
Card
#fcf2f2lavenderblush
#030303black
Card foreground
#000000black
#fdfcfcsnow
Popover
#fcf2f2lavenderblush
#030303black
Popover foreground
#000000black
#fdfcfcsnow
Primary
#f76464tomato
#f76464tomato
Primary foreground
#270202black
#270202black
Secondary
#f764adhotpink
#f764adhotpink
Secondary foreground
#270214black
#270214black
Muted
#e8cad9thistle
#351726black
Muted foreground
#554a4fdarkslategray
#b5aab0darkgray
Accent
#f7ad64sandybrown
#f7ad64sandybrown
Accent foreground
#271402black
#271402black
Destructive
#ca3107firebrick
#f85b30tomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f76464tomato
#f76464tomato

Contrast

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

Light mode
Text on background19.58:1AAA
Text on card19.19:1AAA
Primary button6.34:1AA
Secondary button6.67:1AA
Muted text5.58:1AA
Accent9.38:1AAA
Destructive5.30:1AA
Dark mode
Text on background19.88:1AAA
Text on card20.19:1AAA
Primary button6.34:1AA
Secondary button6.67:1AA
Muted text7.15:1AAA
Accent9.38:1AAA
Destructive6.52:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.98 0.007 17.276);
  --foreground: oklch(0.083 0.014 20.398);
  --muted: oklch(0.868 0.039 346.272);
  --muted-foreground: oklch(0.42 0.017 346.182);
  --popover: oklch(0.97 0.011 17.338);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.97 0.011 17.338);
  --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.689 0.181 23.079);
  --primary-foreground: oklch(0.176 0.065 27.102);
  --secondary: oklch(0.709 0.194 352.093);
  --secondary-foreground: oklch(0.183 0.068 353.561);
  --accent: oklch(0.805 0.125 64.405);
  --accent-foreground: oklch(0.214 0.044 65.206);
  --destructive: oklch(0.551 0.194 34.038);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.689 0.181 23.079);
  --chart-1: oklch(0.689 0.181 23.079);
  --chart-2: oklch(0.709 0.194 352.093);
  --chart-3: oklch(0.805 0.125 64.405);
  --chart-4: oklch(0.73 0.177 351.159);
  --chart-5: oklch(0.69 0.186 23.332);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.983 0.003 17.209);
  --muted: oklch(0.255 0.052 350.15);
  --muted-foreground: oklch(0.75 0.015 345.653);
  --popover: oklch(0.092 0 180);
  --popover-foreground: oklch(0.991 0.002 17.183);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.991 0.002 17.183);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.689 0.181 23.079);
  --primary-foreground: oklch(0.176 0.065 27.102);
  --secondary: oklch(0.709 0.194 352.093);
  --secondary-foreground: oklch(0.183 0.068 353.561);
  --accent: oklch(0.805 0.125 64.405);
  --accent-foreground: oklch(0.214 0.044 65.206);
  --destructive: oklch(0.673 0.199 35.888);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.689 0.181 23.079);
  --chart-1: oklch(0.689 0.181 23.079);
  --chart-2: oklch(0.709 0.194 352.093);
  --chart-3: oklch(0.805 0.125 64.405);
  --chart-4: oklch(0.73 0.177 351.159);
  --chart-5: oklch(0.69 0.186 23.332);
}