Dramatic for shadcn/ui

Dramatic is a shadcn/ui theme built around a light violet primary color (#c1a5e3) with light purple accents (#e0a5e3). The light mode uses a neutral background (#ffffff). Dark mode keeps the light violet primary (#c1a5e3) on a neutral background (#050208).

Color palette

TokenLightDark
Background
#ffffffwhite
#050208black
Foreground
#000000black
#ffffffwhite
Card
#fcfcfcsnow
#07040cblack
Card foreground
#000000black
#ffffffwhite
Popover
#ffffffwhite
#050208black
Popover foreground
#000000black
#ffffffwhite
Primary
#c1a5e3plum
#c1a5e3plum
Primary foreground
#291442midnightblue
#291442midnightblue
Secondary
#a5a8e3lightsteelblue
#a5a8e3lightsteelblue
Secondary foreground
#141742midnightblue
#141742midnightblue
Muted
#e6e6ealavender
#151519black
Muted foreground
#5b5c6bdimgray
#9494a4darkgray
Accent
#e0a5e3plum
#e0a5e3plum
Accent foreground
#401442midnightblue
#401442midnightblue
Destructive
#a0260dfirebrick
#ed4321orangered
Destructive foreground
#fde7e3mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#c1a5e3plum
#c1a5e3plum

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card20.54:1AAA
Primary button7.68:1AAA
Secondary button7.59:1AAA
Muted text5.30:1AA
Accent7.65:1AAA
Destructive6.37:1AA
Dark mode
Text on background20.57:1AAA
Text on card20.37:1AAA
Primary button7.68:1AAA
Secondary button7.59:1AAA
Muted text6.08:1AA
Accent7.65:1AAA
Destructive3.86:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.927 0.005 283.884);
  --muted-foreground: oklch(0.481 0.024 283.061);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.992 0 161.565);
  --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.769 0.092 304.882);
  --primary-foreground: oklch(0.249 0.084 301.26);
  --secondary: oklch(0.752 0.085 281.81);
  --secondary-foreground: oklch(0.232 0.081 275.778);
  --accent: oklch(0.798 0.107 324.859);
  --accent-foreground: oklch(0.284 0.094 325.685);
  --destructive: oklch(0.465 0.163 32.779);
  --destructive-foreground: oklch(0.944 0.025 31.111);
  --ring: oklch(0.769 0.092 304.882);
  --chart-1: oklch(0.769 0.092 304.882);
  --chart-2: oklch(0.752 0.085 281.81);
  --chart-3: oklch(0.798 0.107 324.859);
  --chart-4: oklch(0.785 0.073 282.222);
  --chart-5: oklch(0.766 0.097 304.785);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.103 0.02 307.634);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.198 0.007 283.347);
  --muted-foreground: oklch(0.672 0.022 283.384);
  --popover: oklch(0.103 0.02 307.634);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.118 0.023 307.466);
  --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.769 0.092 304.882);
  --primary-foreground: oklch(0.249 0.084 301.26);
  --secondary: oklch(0.752 0.085 281.81);
  --secondary-foreground: oklch(0.232 0.081 275.778);
  --accent: oklch(0.798 0.107 324.859);
  --accent-foreground: oklch(0.284 0.094 325.685);
  --destructive: oklch(0.629 0.211 33.009);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.769 0.092 304.882);
  --chart-1: oklch(0.769 0.092 304.882);
  --chart-2: oklch(0.752 0.085 281.81);
  --chart-3: oklch(0.798 0.107 324.859);
  --chart-4: oklch(0.785 0.073 282.222);
  --chart-5: oklch(0.766 0.097 304.785);
}