Ill-fated for shadcn/ui

Ill-fated is a shadcn/ui theme built around a light violet primary color (#ebe0f0) with light purple accents (#f0e0ee). The light mode uses a neutral background (#fbf7fd). Dark mode keeps the light violet primary (#ebe0f0) on a violet-tinted background (#0c0510).

Color palette

TokenLightDark
Background
#fbf7fdghostwhite
#0c0510black
Foreground
#0f0416black
#f8f5f9whitesmoke
Card
#fbf7fdghostwhite
#0c0510black
Card foreground
#0f0416black
#f8f5f9whitesmoke
Popover
#fbf7fdghostwhite
#0c0510black
Popover foreground
#0f0416black
#f8f5f9whitesmoke
Primary
#ebe0f0lavender
#ebe0f0lavender
Primary foreground
#58336cdarkslateblue
#58336cdarkslateblue
Secondary
#e2e0f0lavender
#e2e0f0lavender
Secondary foreground
#3b336cdarkslateblue
#3b336cdarkslateblue
Muted
#dad8e4gainsboro
#1d1b27black
Muted foreground
#414144darkslategray
#bcbbbesilver
Accent
#f0e0eelavender
#f0e0eelavender
Accent foreground
#6c3363rebeccapurple
#6c3363rebeccapurple
Destructive
#ba3408firebrick
#eb420aorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ebe0f0lavender
#ebe0f0lavender

Contrast

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

Light mode
Text on background18.86:1AAA
Text on card18.86:1AAA
Primary button7.79:1AAA
Secondary button8.60:1AAA
Muted text7.21:1AAA
Accent7.23:1AAA
Destructive5.85:1AA
Dark mode
Text on background18.60:1AAA
Text on card18.60:1AAA
Primary button7.79:1AAA
Secondary button8.60:1AAA
Muted text8.86:1AAA
Accent7.23:1AAA
Destructive3.94: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.98 0.009 314.168);
  --foreground: oklch(0.14 0.044 313.58);
  --muted: oklch(0.887 0.016 292.959);
  --muted-foreground: oklch(0.377 0.004 293.082);
  --popover: oklch(0.98 0.009 314.168);
  --popover-foreground: oklch(0.14 0.044 313.58);
  --card: oklch(0.98 0.009 314.168);
  --card-foreground: oklch(0.14 0.044 313.58);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.919 0.025 314.07);
  --primary-foreground: oklch(0.391 0.101 312.591);
  --secondary: oklch(0.913 0.022 292.842);
  --secondary-foreground: oklch(0.359 0.095 287.48);
  --accent: oklch(0.923 0.026 330.603);
  --accent-foreground: oklch(0.413 0.104 333.232);
  --destructive: oklch(0.526 0.177 35.76);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.919 0.025 314.07);
  --chart-1: oklch(0.919 0.025 314.07);
  --chart-2: oklch(0.913 0.022 292.842);
  --chart-3: oklch(0.923 0.026 330.603);
  --chart-4: oklch(0.942 0.015 293.01);
  --chart-5: oklch(0.918 0.027 314.058);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.133 0.028 314.407);
  --foreground: oklch(0.974 0.006 314.187);
  --muted: oklch(0.231 0.023 291.364);
  --muted-foreground: oklch(0.794 0.004 293.218);
  --popover: oklch(0.133 0.028 314.407);
  --popover-foreground: oklch(0.974 0.006 314.187);
  --card: oklch(0.133 0.028 314.407);
  --card-foreground: oklch(0.974 0.006 314.187);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.919 0.025 314.07);
  --primary-foreground: oklch(0.391 0.101 312.591);
  --secondary: oklch(0.913 0.022 292.842);
  --secondary-foreground: oklch(0.359 0.095 287.48);
  --accent: oklch(0.923 0.026 330.603);
  --accent-foreground: oklch(0.413 0.104 333.232);
  --destructive: oklch(0.624 0.213 35.437);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.919 0.025 314.07);
  --chart-1: oklch(0.919 0.025 314.07);
  --chart-2: oklch(0.913 0.022 292.842);
  --chart-3: oklch(0.923 0.026 330.603);
  --chart-4: oklch(0.942 0.015 293.01);
  --chart-5: oklch(0.918 0.027 314.058);
}