Dramaturge for shadcn/ui

Dramaturge is a shadcn/ui theme built around a vivid deep green primary color (#3e5c0a) with vivid deep green accents (#155c0a). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep green primary (#3e5c0a) on a green-tinted background (#0b0e07).

Color palette

TokenLightDark
Background
#ffffffwhite
#0b0e07black
Foreground
#090e02black
#ffffffwhite
Card
#fcfcfcsnow
#0e1109black
Card foreground
#060901black
#ffffffwhite
Popover
#fcfcfcsnow
#0e1109black
Popover foreground
#060901black
#ffffffwhite
Primary
#3e5c0adarkolivegreen
#3e5c0adarkolivegreen
Primary foreground
#d7f5a3palegoldenrod
#d7f5a3palegoldenrod
Secondary
#5c510adarkolivegreen
#5c510adarkolivegreen
Secondary foreground
#f5eaa3palegoldenrod
#f5eaa3palegoldenrod
Muted
#e7e6degainsboro
#211f18black
Muted foreground
#55544edarkslategray
#b1b0aadarkgray
Accent
#155c0adarkgreen
#155c0adarkgreen
Accent foreground
#aef5a3palegreen
#aef5a3palegreen
Destructive
#702901saddlebrown
#fe6b16darkorange
Destructive foreground
#ffc5a4navajowhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#3e5c0adarkolivegreen
#3e5c0adarkolivegreen

Contrast

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

Light mode
Text on background19.52:1AAA
Text on card19.62:1AAA
Primary button6.39:1AA
Secondary button6.52:1AA
Muted text6.08:1AA
Accent6.40:1AA
Destructive6.86:1AA
Dark mode
Text on background19.48:1AAA
Text on card19.05:1AAA
Primary button6.39:1AA
Secondary button6.52:1AA
Muted text7.57:1AAA
Accent6.40:1AA
Destructive7.31:1AAA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.153 0.031 122.957);
  --muted: oklch(0.924 0.01 99.507);
  --muted-foreground: oklch(0.445 0.009 99.636);
  --popover: oklch(0.992 0 161.565);
  --popover-foreground: oklch(0.132 0.027 122.227);
  --card: oklch(0.992 0 161.565);
  --card-foreground: oklch(0.132 0.027 122.227);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.434 0.109 128.91);
  --primary-foreground: oklch(0.929 0.11 124.851);
  --secondary: oklch(0.433 0.085 99.698);
  --secondary-foreground: oklch(0.929 0.09 100.494);
  --accent: oklch(0.415 0.13 141.412);
  --accent-foreground: oklch(0.903 0.13 141.205);
  --destructive: oklch(0.38 0.11 44.067);
  --destructive-foreground: oklch(0.867 0.08 51.4);
  --ring: oklch(0.434 0.109 128.91);
  --chart-1: oklch(0.434 0.109 128.91);
  --chart-2: oklch(0.433 0.085 99.698);
  --chart-3: oklch(0.415 0.13 141.412);
  --chart-4: oklch(0.476 0.094 99.593);
  --chart-5: oklch(0.439 0.112 129.12);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.156 0.015 123.708);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.239 0.014 100.134);
  --muted-foreground: oklch(0.756 0.008 99.496);
  --popover: oklch(0.171 0.018 124.457);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.171 0.018 124.457);
  --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.434 0.109 128.91);
  --primary-foreground: oklch(0.929 0.11 124.851);
  --secondary: oklch(0.433 0.085 99.698);
  --secondary-foreground: oklch(0.929 0.09 100.494);
  --accent: oklch(0.415 0.13 141.412);
  --accent-foreground: oklch(0.903 0.13 141.205);
  --destructive: oklch(0.701 0.198 43.861);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.434 0.109 128.91);
  --chart-1: oklch(0.434 0.109 128.91);
  --chart-2: oklch(0.433 0.085 99.698);
  --chart-3: oklch(0.415 0.13 141.412);
  --chart-4: oklch(0.476 0.094 99.593);
  --chart-5: oklch(0.439 0.112 129.12);
}