Miserable for shadcn/ui

Miserable is a shadcn/ui theme built around a near-white primary color (#f9f5ff) with near-white accents (#fef5ff). The light mode uses a neutral background (#fcfcfd). Dark mode keeps the near-white primary (#f9f5ff) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fcfcfdwhite
#000000black
Foreground
#090212black
#f7f6f9whitesmoke
Card
#faf8fcghostwhite
#030303black
Card foreground
#07020eblack
#faf9fbghostwhite
Popover
#fcfcfdwhite
#000000black
Popover foreground
#090212black
#f7f6f9whitesmoke
Primary
#f9f5ffghostwhite
#f9f5ffghostwhite
Primary foreground
#5509b9rebeccapurple
#5509b9rebeccapurple
Secondary
#f5f6ffghostwhite
#f5f6ffghostwhite
Secondary foreground
#323ff5royalblue
#323ff5royalblue
Muted
#d7d8eagainsboro
#151728black
Muted foreground
#505158darkslategray
#a7a7afdarkgray
Accent
#fef5ffghostwhite
#fef5ffghostwhite
Accent foreground
#520458indigo
#520458indigo
Destructive
#731d0cmaroon
#ea5639tomato
Destructive foreground
#f8c4balightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f9f5ffghostwhite
#f9f5ffghostwhite

Contrast

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

Light mode
Text on background19.87:1AAA
Text on card19.43:1AAA
Primary button9.20:1AAA
Secondary button6.16:1AA
Muted text5.62:1AA
Accent13.01:1AAA
Destructive7.08:1AAA
Dark mode
Text on background19.50:1AAA
Text on card19.70:1AAA
Primary button9.20:1AAA
Secondary button6.16:1AA
Muted text7.43:1AAA
Accent13.01:1AAA
Destructive3.56: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.991 0.002 305.708);
  --foreground: oklch(0.119 0.044 305.296);
  --muted: oklch(0.888 0.023 282.648);
  --muted-foreground: oklch(0.435 0.013 282.593);
  --popover: oklch(0.991 0.002 305.708);
  --popover-foreground: oklch(0.119 0.044 305.296);
  --card: oklch(0.982 0.005 305.676);
  --card-foreground: oklch(0.107 0.038 307.113);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.977 0.013 305.563);
  --primary-foreground: oklch(0.413 0.227 290.982);
  --secondary: oklch(0.975 0.012 282.904);
  --secondary-foreground: oklch(0.502 0.262 269.412);
  --accent: oklch(0.98 0.015 323.716);
  --accent-foreground: oklch(0.315 0.142 324.994);
  --destructive: oklch(0.372 0.123 33.076);
  --destructive-foreground: oklch(0.864 0.061 31.353);
  --ring: oklch(0.977 0.013 305.563);
  --chart-1: oklch(0.977 0.013 305.563);
  --chart-2: oklch(0.975 0.012 282.904);
  --chart-3: oklch(0.98 0.015 323.716);
  --chart-4: oklch(1.013 0.006 103.2);
  --chart-5: oklch(0.976 0.013 305.557);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.975 0.004 305.69);
  --muted: oklch(0.211 0.034 279.945);
  --muted-foreground: oklch(0.731 0.011 282.842);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.975 0.004 305.69);
  --card: oklch(0.092 0 180);
  --card-foreground: oklch(0.983 0.002 305.707);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.977 0.013 305.563);
  --primary-foreground: oklch(0.413 0.227 290.982);
  --secondary: oklch(0.975 0.012 282.904);
  --secondary-foreground: oklch(0.502 0.262 269.412);
  --accent: oklch(0.98 0.015 323.716);
  --accent-foreground: oklch(0.315 0.142 324.994);
  --destructive: oklch(0.647 0.189 33.204);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.977 0.013 305.563);
  --chart-1: oklch(0.977 0.013 305.563);
  --chart-2: oklch(0.975 0.012 282.904);
  --chart-3: oklch(0.98 0.015 323.716);
  --chart-4: oklch(1.013 0.006 103.2);
  --chart-5: oklch(0.976 0.013 305.557);
}