Sukuna for shadcn/ui

Sukuna is a shadcn/ui theme built around an indigo primary color (#3a2777) with violet accents (#622777). The light mode uses a neutral background (#f8f6fd). Dark mode switches to a near-black primary (#000000) on a red-tinted background (#560000).

Color palette

TokenLightDark
Background
#f8f6fdghostwhite
#560000maroon
Foreground
#080416black
#000000black
Card
#f8f6fdghostwhite
#880000darkred
Card foreground
#080416black
#000000black
Popover
#f8f6fdghostwhite
#841818maroon
Popover foreground
#080416black
#ff0000red
Primary
#3a2777darkslateblue
#000000black
Primary foreground
#e2dcf4lavender
#f20000red
Secondary
#273c77midnightblue
#ff0000red
Secondary foreground
#dce3f4lavender
#000000black
Muted
#eff1f5whitesmoke
#980000darkred
Muted foreground
#555658dimgray
#000000black
Accent
#622777rebeccapurple
#ff0000red
Accent foreground
#eedcf4lavender
#000000black
Destructive
#db4d06orangered
#ff0101red
Destructive foreground
#ffffffwhite
#000000black
Border
#eae9eclavender
#000000black
Input
#eae9eclavender
#ff0000red
Ring
#3a2777darkslateblue
#ff0000red

Contrast

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

Light mode
Text on background18.90:1AAA
Text on card18.90:1AAA
Primary button9.10:1AAA
Secondary button8.14:1AAA
Muted text6.49:1AA
Accent7.80:1AAA
Destructive4.14:1AA Large
Dark mode
Text on background1.39:1Fail
Text on card2.05:1Fail
Primary button4.77:1AA
Secondary button5.25:1AA
Muted text2.33:1Fail
Accent5.25:1AA
Destructive5.25:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.978 0.009 296.905);
  --foreground: oklch(0.128 0.042 293.213);
  --muted: oklch(0.958 0.006 270.069);
  --muted-foreground: oklch(0.453 0.004 270.042);
  --popover: oklch(0.978 0.009 296.905);
  --popover-foreground: oklch(0.128 0.042 293.213);
  --card: oklch(0.978 0.009 296.905);
  --card-foreground: oklch(0.128 0.042 293.213);
  --border: oklch(0.936 0.003 297.015);
  --input: oklch(0.936 0.003 297.015);
  --primary: oklch(0.345 0.131 288.316);
  --primary-foreground: oklch(0.907 0.032 296.439);
  --secondary: oklch(0.373 0.104 266.387);
  --secondary-foreground: oklch(0.915 0.024 269.885);
  --accent: oklch(0.395 0.139 315.801);
  --accent-foreground: oklch(0.916 0.036 317.099);
  --destructive: oklch(0.608 0.189 39.845);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.345 0.131 288.316);
  --chart-1: oklch(0.345 0.131 288.316);
  --chart-2: oklch(0.373 0.104 266.387);
  --chart-3: oklch(0.395 0.139 315.801);
  --chart-4: oklch(0.397 0.113 266.327);
  --chart-5: oklch(0.342 0.137 287.547);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.285 0.117 29.234);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.427 0.175 29.234);
  --muted-foreground: oklch(0 0 0);
  --popover: oklch(0.402 0.143 26.579);
  --popover-foreground: oklch(0.628 0.258 29.234);
  --card: oklch(0.394 0.162 29.234);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0 0 0);
  --input: oklch(0.628 0.258 29.234);
  --primary: oklch(0 0 0);
  --primary-foreground: oklch(0.604 0.248 29.234);
  --secondary: oklch(0.628 0.258 29.234);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.628 0.258 29.234);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.628 0.257 29.206);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.628 0.258 29.234);
  --chart-1: oklch(0 0 0);
  --chart-2: oklch(0.628 0.258 29.234);
  --chart-3: oklch(0.628 0.258 29.234);
  --chart-4: oklch(0.631 0.254 28.842);
  --chart-5: oklch(0 0 0);
}