Dramatic for shadcn/ui

Dramatic is a shadcn/ui theme built around a light green primary color (#f6faf5) with light purple accents (#f9f5fa). The light mode uses a neutral background (#f9fcf7). Dark mode keeps the light green primary (#f6faf5) on a green-tinted background (#050c03).

Color palette

TokenLightDark
Background
#f9fcf7mintcream
#050c03black
Foreground
#071603black
#ffffffwhite
Card
#f9fcf7mintcream
#050c03black
Card foreground
#071603black
#ffffffwhite
Popover
#f9fcf7mintcream
#050c03black
Popover foreground
#071603black
#ffffffwhite
Primary
#f6faf5whitesmoke
#f6faf5whitesmoke
Primary foreground
#24391edarkslategray
#24391edarkslategray
Secondary
#f9f5faghostwhite
#f9f5faghostwhite
Secondary foreground
#6f417crebeccapurple
#6f417crebeccapurple
Muted
#ddd1e0gainsboro
#2a1f2edarkslategray
Muted foreground
#5e5062dimgray
#ab9dafdarkgray
Accent
#f9f5faghostwhite
#f9f5faghostwhite
Accent foreground
#6f417crebeccapurple
#6f417crebeccapurple
Destructive
#d8360eorangered
#f2542ctomato
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f6faf5whitesmoke
#f6faf5whitesmoke

Contrast

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

Light mode
Text on background18.06:1AAA
Text on card18.06:1AAA
Primary button11.83:1AAA
Secondary button7.14:1AAA
Muted text5.11:1AA
Accent7.14:1AAA
Destructive4.72:1AA
Dark mode
Text on background19.78:1AAA
Text on card19.78:1AAA
Primary button11.83:1AAA
Secondary button7.14:1AAA
Muted text6.12:1AA
Accent7.14:1AAA
Destructive3.47:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.988 0.008 138.893);
  --foreground: oklch(0.182 0.045 137.861);
  --muted: oklch(0.876 0.023 318.881);
  --muted-foreground: oklch(0.453 0.034 318.862);
  --popover: oklch(0.988 0.008 138.893);
  --popover-foreground: oklch(0.182 0.045 137.861);
  --card: oklch(0.988 0.008 138.893);
  --card-foreground: oklch(0.182 0.045 137.861);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.98 0.007 138.893);
  --primary-foreground: oklch(0.318 0.053 139.069);
  --secondary: oklch(0.974 0.007 318.888);
  --secondary-foreground: oklch(0.454 0.106 318.684);
  --accent: oklch(0.974 0.007 318.888);
  --accent-foreground: oklch(0.454 0.106 318.684);
  --destructive: oklch(0.58 0.203 33.716);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.98 0.007 138.893);
  --chart-1: oklch(0.98 0.007 138.893);
  --chart-2: oklch(0.974 0.007 318.888);
  --chart-3: oklch(0.974 0.007 318.888);
  --chart-4: oklch(1 0 180);
  --chart-5: oklch(0.98 0.008 138.894);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.143 0.027 137.154);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.259 0.031 318.835);
  --muted-foreground: oklch(0.713 0.03 318.876);
  --popover: oklch(0.143 0.027 137.154);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.143 0.027 137.154);
  --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.98 0.007 138.893);
  --primary-foreground: oklch(0.318 0.053 139.069);
  --secondary: oklch(0.974 0.007 318.888);
  --secondary-foreground: oklch(0.454 0.106 318.684);
  --accent: oklch(0.974 0.007 318.888);
  --accent-foreground: oklch(0.454 0.106 318.684);
  --destructive: oklch(0.654 0.201 34.871);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.98 0.007 138.893);
  --chart-1: oklch(0.98 0.007 138.893);
  --chart-2: oklch(0.974 0.007 318.888);
  --chart-3: oklch(0.974 0.007 318.888);
  --chart-4: oklch(1 0 180);
  --chart-5: oklch(0.98 0.008 138.894);
}