Miserable for shadcn/ui

Miserable is a shadcn/ui theme built around a deep red primary color (#540d11) with deep indigo accents (#0d1154). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep red primary (#540d11) on a red-tinted background (#0e0707).

Color palette

TokenLightDark
Background
#ffffffwhite
#0e0707black
Foreground
#090102black
#fbf9f9snow
Card
#fcfcfcsnow
#110809black
Card foreground
#050101black
#fdfcfcsnow
Popover
#fcfcfcsnow
#110809black
Popover foreground
#050101black
#fdfcfcsnow
Primary
#540d11maroon
#540d11maroon
Primary foreground
#f1a2a6lightpink
#f1a2a6lightpink
Secondary
#11540ddarkgreen
#11540ddarkgreen
Secondary foreground
#a6f1a2palegreen
#a6f1a2palegreen
Muted
#dce5dcgainsboro
#1a231ablack
Muted foreground
#3d4e3cdarkslategray
#b2c3b1silver
Accent
#0d1154midnightblue
#0d1154midnightblue
Accent foreground
#a2a6f1lightsteelblue
#a2a6f1lightsteelblue
Destructive
#87260dsaddlebrown
#ec6341tomato
Destructive foreground
#fad5ccbisque
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#540d11maroon
#540d11maroon

Contrast

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

Light mode
Text on background20.65:1AAA
Text on card20.31:1AAA
Primary button7.25:1AAA
Secondary button6.86:1AA
Muted text6.92:1AA
Accent7.57:1AAA
Destructive6.71:1AA
Dark mode
Text on background19.06:1AAA
Text on card19.27:1AAA
Primary button7.25:1AAA
Secondary button6.86:1AA
Muted text8.69:1AAA
Accent7.57:1AAA
Destructive6.43:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.099 0.026 17.644);
  --muted: oklch(0.913 0.015 144.031);
  --muted-foreground: oklch(0.403 0.037 143.583);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.078 0.021 17.644);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.078 0.021 17.644);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.293 0.102 23.918);
  --primary-foreground: oklch(0.791 0.093 16.108);
  --secondary: oklch(0.39 0.12 142.308);
  --secondary-foreground: oklch(0.889 0.129 143.241);
  --accent: oklch(0.234 0.118 270.688);
  --accent-foreground: oklch(0.751 0.107 281.181);
  --destructive: oklch(0.418 0.136 34.516);
  --destructive-foreground: oklch(0.902 0.043 34.33);
  --ring: oklch(0.293 0.102 23.918);
  --chart-1: oklch(0.293 0.102 23.918);
  --chart-2: oklch(0.39 0.12 142.308);
  --chart-3: oklch(0.234 0.118 270.688);
  --chart-4: oklch(0.431 0.134 142.3);
  --chart-5: oklch(0.294 0.105 24.386);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.138 0.014 15.108);
  --foreground: oklch(0.984 0.002 13.642);
  --muted: oklch(0.245 0.021 143.608);
  --muted-foreground: oklch(0.799 0.031 143.9);
  --popover: oklch(0.149 0.016 15.611);
  --popover-foreground: oklch(0.992 0.001 13.625);
  --card: oklch(0.149 0.016 15.611);
  --card-foreground: oklch(0.992 0.001 13.625);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.293 0.102 23.918);
  --primary-foreground: oklch(0.791 0.093 16.108);
  --secondary: oklch(0.39 0.12 142.308);
  --secondary-foreground: oklch(0.889 0.129 143.241);
  --accent: oklch(0.234 0.118 270.688);
  --accent-foreground: oklch(0.751 0.107 281.181);
  --destructive: oklch(0.667 0.177 35.192);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.293 0.102 23.918);
  --chart-1: oklch(0.293 0.102 23.918);
  --chart-2: oklch(0.39 0.12 142.308);
  --chart-3: oklch(0.234 0.118 270.688);
  --chart-4: oklch(0.431 0.134 142.3);
  --chart-5: oklch(0.294 0.105 24.386);
}