Drama for shadcn/ui

Drama is a shadcn/ui theme built around a muted purple primary color (#917f94) with muted teal accents (#7f9491). The light mode uses a neutral background (#fefbfe). Dark mode keeps the muted purple primary (#917f94) on a purple-tinted background (#0d060e).

Color palette

TokenLightDark
Background
#fefbfewhite
#0d060eblack
Foreground
#000000black
#fbf9fbsnow
Card
#fefbfewhite
#0d060eblack
Card foreground
#000000black
#fbf9fbsnow
Popover
#fefbfewhite
#0d060eblack
Popover foreground
#000000black
#fbf9fbsnow
Primary
#917f94gray
#917f94gray
Primary foreground
#000000black
#000000black
Secondary
#94917fgray
#94917fgray
Secondary foreground
#000000black
#000000black
Muted
#e5e4e1gainsboro
#1e1d1ablack
Muted foreground
#736f59dimgray
#a6a28crosybrown
Accent
#7f9491lightslategray
#7f9491lightslategray
Accent foreground
#000000black
#000000black
Destructive
#aa0903darkred
#fb2f28crimson
Destructive foreground
#fee2e1mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#917f94gray
#917f94gray

Contrast

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

Light mode
Text on background20.40:1AAA
Text on card20.40:1AAA
Primary button5.67:1AA
Secondary button6.62:1AA
Muted text3.98:1AA Large
Accent6.56:1AA
Destructive6.25:1AA
Dark mode
Text on background19.09:1AAA
Text on card19.09:1AAA
Primary button5.67:1AA
Secondary button6.62:1AA
Muted text6.54:1AA
Accent6.56:1AA
Destructive3.79:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.991 0.005 321.077);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.919 0.004 98.377);
  --muted-foreground: oklch(0.54 0.034 99.094);
  --popover: oklch(0.991 0.005 321.077);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.991 0.005 321.077);
  --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.62 0.038 321.194);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.655 0.026 98.841);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.65 0.024 185.613);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.466 0.187 29.444);
  --destructive-foreground: oklch(0.936 0.031 20.096);
  --ring: oklch(0.62 0.038 321.194);
  --chart-1: oklch(0.62 0.038 321.194);
  --chart-2: oklch(0.655 0.026 98.841);
  --chart-3: oklch(0.65 0.024 185.613);
  --chart-4: oklch(0.678 0.024 98.791);
  --chart-5: oklch(0.617 0.05 321.234);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.138 0.023 321.751);
  --foreground: oklch(0.984 0.003 321.073);
  --muted: oklch(0.231 0.005 98.638);
  --muted-foreground: oklch(0.71 0.032 98.902);
  --popover: oklch(0.138 0.023 321.751);
  --popover-foreground: oklch(0.984 0.003 321.073);
  --card: oklch(0.138 0.023 321.751);
  --card-foreground: oklch(0.984 0.003 321.073);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.62 0.038 321.194);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.655 0.026 98.841);
  --secondary-foreground: oklch(0 0 0);
  --accent: oklch(0.65 0.024 185.613);
  --accent-foreground: oklch(0 0 0);
  --destructive: oklch(0.638 0.237 28.409);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.62 0.038 321.194);
  --chart-1: oklch(0.62 0.038 321.194);
  --chart-2: oklch(0.655 0.026 98.841);
  --chart-3: oklch(0.65 0.024 185.613);
  --chart-4: oklch(0.678 0.024 98.791);
  --chart-5: oklch(0.617 0.05 321.234);
}