Unfortunate for shadcn/ui

Unfortunate is a shadcn/ui theme built around a deep orange primary color (#24110a) with deep cyan accents (#0a1d24). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep orange primary (#24110a) on a neutral background (#030202).

Color palette

TokenLightDark
Background
#ffffffwhite
#030202black
Foreground
#000000black
#fdfcfcsnow
Card
#fcfcfcsnow
#070403black
Card foreground
#000000black
#ffffffwhite
Popover
#ffffffwhite
#030202black
Popover foreground
#000000black
#fdfcfcsnow
Primary
#24110ablack
#24110ablack
Primary foreground
#de9c82darksalmon
#de9c82darksalmon
Secondary
#0a1d24black
#0a1d24black
Secondary foreground
#82c4deskyblue
#82c4deskyblue
Muted
#dcdfe0gainsboro
#1f2223black
Muted foreground
#59686edimgray
#91a0a6darkgray
Accent
#0a1d24black
#0a1d24black
Accent foreground
#82c4deskyblue
#82c4deskyblue
Destructive
#d31e0dfirebrick
#f13422orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#24110ablack
#24110ablack

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button7.90:1AAA
Secondary button8.99:1AAA
Muted text4.30:1AA Large
Accent8.99:1AAA
Destructive5.30:1AA
Dark mode
Text on background20.21:1AAA
Text on card20.40:1AAA
Primary button7.90:1AAA
Secondary button8.99:1AAA
Muted text5.93:1AA
Accent8.99:1AAA
Destructive4.00:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.901 0.003 223.169);
  --muted-foreground: oklch(0.507 0.021 223.654);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --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.204 0.035 42.093);
  --primary-foreground: oklch(0.75 0.087 42.439);
  --secondary: oklch(0.217 0.029 226.288);
  --secondary-foreground: oklch(0.785 0.076 224.874);
  --accent: oklch(0.217 0.029 226.288);
  --accent-foreground: oklch(0.785 0.076 224.874);
  --destructive: oklch(0.554 0.214 30.091);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.204 0.035 42.093);
  --chart-1: oklch(0.204 0.035 42.093);
  --chart-2: oklch(0.217 0.029 226.288);
  --chart-3: oklch(0.217 0.029 226.288);
  --chart-4: oklch(0.255 0.036 226.815);
  --chart-5: oklch(0.204 0.037 42.087);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.091 0.006 47.168);
  --foreground: oklch(0.992 0.001 43.121);
  --muted: oklch(0.25 0.005 223.334);
  --muted-foreground: oklch(0.696 0.02 223.457);
  --popover: oklch(0.091 0.006 47.168);
  --popover-foreground: oklch(0.992 0.001 43.121);
  --card: oklch(0.114 0.007 47.168);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.204 0.035 42.093);
  --primary-foreground: oklch(0.75 0.087 42.439);
  --secondary: oklch(0.217 0.029 226.288);
  --secondary-foreground: oklch(0.785 0.076 224.874);
  --accent: oklch(0.217 0.029 226.288);
  --accent-foreground: oklch(0.785 0.076 224.874);
  --destructive: oklch(0.623 0.226 29.933);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.204 0.035 42.093);
  --chart-1: oklch(0.204 0.035 42.093);
  --chart-2: oklch(0.217 0.029 226.288);
  --chart-3: oklch(0.217 0.029 226.288);
  --chart-4: oklch(0.255 0.036 226.815);
  --chart-5: oklch(0.204 0.037 42.087);
}