SHANTI for shadcn/ui

SHANTI is a shadcn/ui theme built around a light red primary color (#f9efec) with red accents (#d47a7a). The light mode uses a red-tinted background (#ffdcd3). Dark mode switches to a pink primary (#762346) on a neutral background (#040102).

Color palette

TokenLightDark
Background
#ffdcd3mistyrose
#040102black
Foreground
#14060cblack
#faf4f7whitesmoke
Card
#fdf6f9snow
#040102black
Card foreground
#14060cblack
#faf4f7whitesmoke
Popover
#fdf6f9snow
#040102black
Popover foreground
#14060cblack
#faf4f7whitesmoke
Primary
#f9efeclinen
#762346brown
Primary foreground
#501c1amaroon
#f3d8e3mistyrose
Secondary
#e8c0b3lightpink
#467623darkolivegreen
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#eff5eahoneydew
#0e150ablack
Muted foreground
#4d5945darkolivegreen
#aebaa6darkgray
Accent
#d47a7apalevioletred
#234676darkslategray
Accent foreground
#e9eef5lavender
#d8e3f3lavender
Destructive
#942205darkred
#dd3308orangered
Destructive foreground
#fdd7cebisque
#ffffffwhite
Border
#eeecedwhitesmoke
#292426darkslategray
Input
#eeecedwhitesmoke
#292426darkslategray
Ring
#762346brown
#762346brown

Contrast

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

Light mode
Text on background15.48:1AAA
Text on card18.65:1AAA
Primary button12.18:1AAA
Secondary button1.66:1Fail
Muted text6.69:1AA
Accent2.63:1Fail
Destructive6.36:1AA
Dark mode
Text on background19.14:1AAA
Text on card19.14:1AAA
Primary button7.50:1AAA
Secondary button5.43:1AA
Muted text9.18:1AAA
Accent7.36:1AAA
Destructive4.60:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.921 0.041 34.756);
  --foreground: oklch(0.148 0.028 353.175);
  --muted: oklch(0.963 0.016 131.861);
  --muted-foreground: oklch(0.448 0.036 132.412);
  --popover: oklch(0.981 0.008 349.907);
  --popover-foreground: oklch(0.148 0.028 353.175);
  --card: oklch(0.981 0.008 349.907);
  --card-foreground: oklch(0.148 0.028 353.175);
  --border: oklch(0.945 0.003 349.747);
  --input: oklch(0.945 0.003 349.747);
  --primary: oklch(0.959 0.012 34.748);
  --primary-foreground: oklch(0.306 0.079 25.056);
  --secondary: oklch(0.839 0.049 38.793);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.677 0.113 20.444);
  --accent-foreground: oklch(0.948 0.011 256.695);
  --destructive: oklch(0.438 0.154 33.81);
  --destructive-foreground: oklch(0.909 0.045 34.332);
  --ring: oklch(0.396 0.12 358.509);
  --chart-1: oklch(0.959 0.012 34.748);
  --chart-2: oklch(0.839 0.049 38.793);
  --chart-3: oklch(0.677 0.113 20.444);
  --chart-4: oklch(0.864 0.041 38.814);
  --chart-5: oklch(0.958 0.013 34.748);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.084 0.017 349.288);
  --foreground: oklch(0.974 0.007 349.871);
  --muted: oklch(0.184 0.024 132.901);
  --muted-foreground: oklch(0.774 0.032 132.063);
  --popover: oklch(0.084 0.017 349.288);
  --popover-foreground: oklch(0.974 0.007 349.871);
  --card: oklch(0.084 0.017 349.288);
  --card-foreground: oklch(0.974 0.007 349.871);
  --border: oklch(0.266 0.008 350.463);
  --input: oklch(0.266 0.008 350.463);
  --primary: oklch(0.396 0.12 358.509);
  --primary-foreground: oklch(0.907 0.034 350.692);
  --secondary: oklch(0.513 0.125 134.756);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.393 0.091 257.192);
  --accent-foreground: oklch(0.913 0.025 256.744);
  --destructive: oklch(0.587 0.211 33.27);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.396 0.12 358.509);
  --chart-1: oklch(0.396 0.12 358.509);
  --chart-2: oklch(0.513 0.125 134.756);
  --chart-3: oklch(0.393 0.091 257.192);
  --chart-4: oklch(0.549 0.135 134.805);
  --chart-5: oklch(0.397 0.125 359.068);
}