Ill-fated for shadcn/ui

Ill-fated is a shadcn/ui theme built around a muted indigo primary color (#393762) with muted violet accents (#4e3762). The light mode uses a neutral background (#fbfbfe). Dark mode keeps the muted indigo primary (#393762) on an indigo-tinted background (#04030c).

Color palette

TokenLightDark
Background
#fbfbfeghostwhite
#04030cblack
Foreground
#010104black
#f9f9fbghostwhite
Card
#fbfbfeghostwhite
#04030cblack
Card foreground
#010104black
#f9f9fbghostwhite
Popover
#fbfbfeghostwhite
#04030cblack
Popover foreground
#010104black
#f9f9fbghostwhite
Primary
#393762darkslategray
#393762darkslategray
Primary foreground
#dfdeedlavender
#dfdeedlavender
Secondary
#374b62darkslategray
#374b62darkslategray
Secondary foreground
#dee5edlavender
#dee5edlavender
Muted
#f1f2f3whitesmoke
#0c0d0eblack
Muted foreground
#434547darkslategray
#b8babcsilver
Accent
#4e3762darkslateblue
#4e3762darkslateblue
Accent foreground
#e6deedlavender
#e6deedlavender
Destructive
#720c09maroon
#ee2720crimson
Destructive foreground
#f9b5b3lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#393762darkslategray
#393762darkslategray

Contrast

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

Light mode
Text on background20.15:1AAA
Text on card20.15:1AAA
Primary button8.34:1AAA
Secondary button7.04:1AAA
Muted text8.60:1AAA
Accent7.83:1AAA
Destructive6.94:1AA
Dark mode
Text on background19.48:1AAA
Text on card19.48:1AAA
Primary button8.34:1AAA
Secondary button7.04:1AAA
Muted text10.01:1AAA
Accent7.83:1AAA
Destructive4.23:1AA Large

CSS variables

Paste this into your globals.css to use Ill-fated in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.004 287.859);
  --foreground: oklch(0.074 0.019 283.208);
  --muted: oklch(0.961 0.002 251.466);
  --muted-foreground: oklch(0.388 0.005 251.544);
  --popover: oklch(0.989 0.004 287.859);
  --popover-foreground: oklch(0.074 0.019 283.208);
  --card: oklch(0.989 0.004 287.859);
  --card-foreground: oklch(0.074 0.019 283.208);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.36 0.073 283.61);
  --primary-foreground: oklch(0.906 0.019 287.541);
  --secondary: oklch(0.406 0.046 252.253);
  --secondary-foreground: oklch(0.919 0.013 251.56);
  --accent: oklch(0.382 0.076 307.726);
  --accent-foreground: oklch(0.912 0.021 309.559);
  --destructive: oklch(0.354 0.135 28.743);
  --destructive-foreground: oklch(0.837 0.079 21.128);
  --ring: oklch(0.36 0.073 283.61);
  --chart-1: oklch(0.36 0.073 283.61);
  --chart-2: oklch(0.406 0.046 252.253);
  --chart-3: oklch(0.382 0.076 307.726);
  --chart-4: oklch(0.433 0.05 252.265);
  --chart-5: oklch(0.354 0.081 282.973);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.109 0.024 283.911);
  --foreground: oklch(0.983 0.002 287.899);
  --muted: oklch(0.157 0.003 251.591);
  --muted-foreground: oklch(0.788 0.004 251.49);
  --popover: oklch(0.109 0.024 283.911);
  --popover-foreground: oklch(0.983 0.002 287.899);
  --card: oklch(0.109 0.024 283.911);
  --card-foreground: oklch(0.983 0.002 287.899);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.36 0.073 283.61);
  --primary-foreground: oklch(0.906 0.019 287.541);
  --secondary: oklch(0.406 0.046 252.253);
  --secondary-foreground: oklch(0.919 0.013 251.56);
  --accent: oklch(0.382 0.076 307.726);
  --accent-foreground: oklch(0.912 0.021 309.559);
  --destructive: oklch(0.61 0.231 28.661);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.36 0.073 283.61);
  --chart-1: oklch(0.36 0.073 283.61);
  --chart-2: oklch(0.406 0.046 252.253);
  --chart-3: oklch(0.382 0.076 307.726);
  --chart-4: oklch(0.433 0.05 252.265);
  --chart-5: oklch(0.354 0.081 282.973);
}