Miserable for shadcn/ui

Miserable is a shadcn/ui theme built around a light red primary color (#e5b3bd) with light teal accents (#b3e5db). The light mode uses a neutral background (#fefbfc). Dark mode keeps the light red primary (#e5b3bd) on a red-tinted background (#0f0607).

Color palette

TokenLightDark
Background
#fefbfcsnow
#0f0607black
Foreground
#090103black
#fdfcfcsnow
Card
#fdf7f8snow
#130709black
Card foreground
#050101black
#ffffffwhite
Popover
#fdf7f8snow
#130709black
Popover foreground
#050101black
#ffffffwhite
Primary
#e5b3bdlightpink
#e5b3bdlightpink
Primary foreground
#4c1a24maroon
#4c1a24maroon
Secondary
#b3e5dbpowderblue
#b3e5dbpowderblue
Secondary foreground
#1a4c42darkslategray
#1a4c42darkslategray
Muted
#e5f0eelavender
#0f1a18black
Muted foreground
#444645darkslategray
#b9bbbbsilver
Accent
#b3e5dbpowderblue
#b3e5dbpowderblue
Accent foreground
#1a4c42darkslategray
#1a4c42darkslategray
Destructive
#d11d05firebrick
#f92b10orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#e5b3bdlightpink
#e5b3bdlightpink

Contrast

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

Light mode
Text on background20.06:1AAA
Text on card19.60:1AAA
Primary button7.77:1AAA
Secondary button7.02:1AAA
Muted text8.17:1AAA
Accent7.02:1AAA
Destructive5.40:1AA
Dark mode
Text on background19.58:1AAA
Text on card19.79:1AAA
Primary button7.77:1AAA
Secondary button7.02:1AAA
Muted text9.22:1AAA
Accent7.02:1AAA
Destructive3.90:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.003 3.273);
  --foreground: oklch(0.099 0.028 3.635);
  --muted: oklch(0.947 0.012 182.835);
  --muted-foreground: oklch(0.391 0.002 183.052);
  --popover: oklch(0.981 0.006 3.363);
  --popover-foreground: oklch(0.079 0.022 3.635);
  --card: oklch(0.981 0.006 3.363);
  --card-foreground: oklch(0.079 0.022 3.635);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.815 0.059 5.105);
  --primary-foreground: oklch(0.298 0.076 10.69);
  --secondary: oklch(0.884 0.053 181.433);
  --secondary-foreground: oklch(0.38 0.056 177.661);
  --accent: oklch(0.884 0.053 181.433);
  --accent-foreground: oklch(0.38 0.056 177.661);
  --destructive: oklch(0.55 0.213 30.738);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.815 0.059 5.105);
  --chart-1: oklch(0.815 0.059 5.105);
  --chart-2: oklch(0.884 0.053 181.433);
  --chart-3: oklch(0.884 0.053 181.433);
  --chart-4: oklch(0.901 0.046 181.736);
  --chart-5: oklch(0.813 0.063 5.23);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.136 0.019 4.444);
  --foreground: oklch(0.991 0.002 3.234);
  --muted: oklch(0.206 0.016 180.771);
  --muted-foreground: oklch(0.79 0.002 183.129);
  --popover: oklch(0.148 0.022 5.857);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.148 0.022 5.857);
  --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.815 0.059 5.105);
  --primary-foreground: oklch(0.298 0.076 10.69);
  --secondary: oklch(0.884 0.053 181.433);
  --secondary-foreground: oklch(0.38 0.056 177.661);
  --accent: oklch(0.884 0.053 181.433);
  --accent-foreground: oklch(0.38 0.056 177.661);
  --destructive: oklch(0.631 0.239 30.872);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.815 0.059 5.105);
  --chart-1: oklch(0.815 0.059 5.105);
  --chart-2: oklch(0.884 0.053 181.433);
  --chart-3: oklch(0.884 0.053 181.433);
  --chart-4: oklch(0.901 0.046 181.736);
  --chart-5: oklch(0.813 0.063 5.23);
}