Disastrous for shadcn/ui

Disastrous is a shadcn/ui theme built around a light blue primary color (#bfcbdf) with light green accents (#cbdfbf). The light mode uses a neutral background (#f7f9fd). Dark mode keeps the light blue primary (#bfcbdf) on a neutral background (#040507).

Color palette

TokenLightDark
Background
#f7f9fdghostwhite
#040507black
Foreground
#000000black
#fbfcfdwhite
Card
#f7f9fdghostwhite
#040507black
Card foreground
#000000black
#fbfcfdwhite
Popover
#f7f9fdghostwhite
#040507black
Popover foreground
#000000black
#fbfcfdwhite
Primary
#bfcbdflightsteelblue
#bfcbdflightsteelblue
Primary foreground
#243147darkslategray
#243147darkslategray
Secondary
#dfbfcbthistle
#dfbfcbthistle
Secondary foreground
#472431darkslategray
#472431darkslategray
Muted
#f3e8eclinen
#170c11black
Muted foreground
#494144darkslategray
#beb6b9silver
Accent
#cbdfbflightgrey
#cbdfbflightgrey
Accent foreground
#314724darkslategray
#314724darkslategray
Destructive
#601606maroon
#f1380eorangered
Destructive foreground
#f9af9flightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#bfcbdflightsteelblue
#bfcbdflightsteelblue

Contrast

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

Light mode
Text on background19.94:1AAA
Text on card19.94:1AAA
Primary button7.96:1AAA
Secondary button7.92:1AAA
Muted text8.25:1AAA
Accent7.18:1AAA
Destructive7.19:1AAA
Dark mode
Text on background19.88:1AAA
Text on card19.88:1AAA
Primary button7.96:1AAA
Secondary button7.92:1AAA
Muted text9.62:1AAA
Accent7.18:1AAA
Destructive3.95:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.006 259.94);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.94 0.013 351.977);
  --muted-foreground: oklch(0.384 0.012 352.494);
  --popover: oklch(0.982 0.006 259.94);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.982 0.006 259.94);
  --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.838 0.031 259.936);
  --primary-foreground: oklch(0.313 0.043 259.677);
  --secondary: oklch(0.834 0.04 352.907);
  --secondary-foreground: oklch(0.312 0.057 356.492);
  --accent: oklch(0.879 0.048 133.373);
  --accent-foreground: oklch(0.371 0.063 134.43);
  --destructive: oklch(0.327 0.109 33.917);
  --destructive-foreground: oklch(0.821 0.091 33.104);
  --ring: oklch(0.838 0.031 259.936);
  --chart-1: oklch(0.838 0.031 259.936);
  --chart-2: oklch(0.834 0.04 352.907);
  --chart-3: oklch(0.879 0.048 133.373);
  --chart-4: oklch(0.861 0.033 352.661);
  --chart-5: oklch(0.837 0.033 259.932);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.112 0.007 255.667);
  --foreground: oklch(0.992 0.002 259.936);
  --muted: oklch(0.173 0.02 354.682);
  --muted-foreground: oklch(0.784 0.01 351.964);
  --popover: oklch(0.112 0.007 255.667);
  --popover-foreground: oklch(0.992 0.002 259.936);
  --card: oklch(0.112 0.007 255.667);
  --card-foreground: oklch(0.992 0.002 259.936);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.838 0.031 259.936);
  --primary-foreground: oklch(0.313 0.043 259.677);
  --secondary: oklch(0.834 0.04 352.907);
  --secondary-foreground: oklch(0.312 0.057 356.492);
  --accent: oklch(0.879 0.048 133.373);
  --accent-foreground: oklch(0.371 0.063 134.43);
  --destructive: oklch(0.625 0.225 32.904);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.838 0.031 259.936);
  --chart-1: oklch(0.838 0.031 259.936);
  --chart-2: oklch(0.834 0.04 352.907);
  --chart-3: oklch(0.879 0.048 133.373);
  --chart-4: oklch(0.861 0.033 352.661);
  --chart-5: oklch(0.837 0.033 259.932);
}