Disastrous for shadcn/ui

Disastrous is a shadcn/ui theme built around a light purple primary color (#f2d9ef) with muted light purple accents (#e9e2e8). The light mode uses a neutral background (#fefbfd). Dark mode keeps the light purple primary (#f2d9ef) on a purple-tinted background (#0b040a).

Color palette

TokenLightDark
Background
#fefbfdsnow
#0b040ablack
Foreground
#040104black
#ffffffwhite
Card
#fefbfdsnow
#0b040ablack
Card foreground
#040104black
#ffffffwhite
Popover
#fefbfdsnow
#0b040ablack
Popover foreground
#040104black
#ffffffwhite
Primary
#f2d9eflavender
#f2d9eflavender
Primary foreground
#72276apurple
#72276apurple
Secondary
#e9e2e8gainsboro
#313031darkslategray
Secondary foreground
#574255darkslategray
#cac9calightgrey
Muted
#e5d2e3gainsboro
#2d1a2bdarkslategray
Muted foreground
#595459dimgray
#aba6aadarkgray
Accent
#e9e2e8gainsboro
#313031darkslategray
Accent foreground
#574255darkslategray
#cac9calightgrey
Destructive
#9d3002saddlebrown
#fd550dorangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f2d9eflavender
#f2d9eflavender

Contrast

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

Light mode
Text on background20.23:1AAA
Text on card20.23:1AAA
Primary button7.20:1AAA
Secondary button7.12:1AAA
Muted text5.16:1AA
Accent7.12:1AAA
Destructive7.37:1AAA
Dark mode
Text on background20.24:1AAA
Text on card20.24:1AAA
Primary button7.20:1AAA
Secondary button7.96:1AAA
Muted text6.75:1AA
Accent7.96:1AAA
Destructive3.25: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.991 0.004 328.633);
  --foreground: oklch(0.084 0.026 330.292);
  --muted: oklch(0.884 0.03 328.965);
  --muted-foreground: oklch(0.453 0.01 328.835);
  --popover: oklch(0.991 0.004 328.633);
  --popover-foreground: oklch(0.084 0.026 330.292);
  --card: oklch(0.991 0.004 328.633);
  --card-foreground: oklch(0.084 0.026 330.292);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.912 0.04 329.071);
  --primary-foreground: oklch(0.411 0.135 331.894);
  --secondary: oklch(0.92 0.012 328.731);
  --secondary-foreground: oklch(0.408 0.042 329.677);
  --accent: oklch(0.92 0.012 328.731);
  --accent-foreground: oklch(0.408 0.042 329.677);
  --destructive: oklch(0.469 0.151 38.289);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.912 0.04 329.071);
  --chart-1: oklch(0.912 0.04 329.071);
  --chart-2: oklch(0.92 0.012 328.731);
  --chart-3: oklch(0.92 0.012 328.731);
  --chart-4: oklch(0.944 0.008 328.686);
  --chart-5: oklch(0.912 0.043 329.1);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.126 0.022 329.685);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.251 0.041 330.262);
  --muted-foreground: oklch(0.73 0.009 328.727);
  --popover: oklch(0.126 0.022 329.685);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.126 0.022 329.685);
  --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.912 0.04 329.071);
  --primary-foreground: oklch(0.411 0.135 331.894);
  --secondary: oklch(0.31 0.002 328.666);
  --secondary-foreground: oklch(0.837 0.002 328.616);
  --accent: oklch(0.31 0.002 328.666);
  --accent-foreground: oklch(0.837 0.002 328.616);
  --destructive: oklch(0.672 0.215 38.23);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.912 0.04 329.071);
  --chart-1: oklch(0.912 0.04 329.071);
  --chart-2: oklch(0.31 0.002 328.666);
  --chart-3: oklch(0.31 0.002 328.666);
  --chart-4: oklch(0.34 0.002 328.668);
  --chart-5: oklch(0.912 0.043 329.1);
}