dragan for shadcn/ui

dragan is a shadcn/ui theme built around a near-white primary color (#e8e8e8) with neutral gray accents (#3c3e44). The light mode uses a neutral background (#18191b). Dark mode keeps the near-white primary (#e8e8e8) on a neutral background (#18191b).

Color palette

TokenLightDark
Background
#18191bblack
#18191bblack
Foreground
#d4d4d4lightgrey
#d4d4d4lightgrey
Card
#131416black
#131416black
Card foreground
#e0e0e0gainsboro
#e0e0e0gainsboro
Popover
#111113black
#111113black
Popover foreground
#edededwhitesmoke
#edededwhitesmoke
Primary
#e8e8e8lavender
#e8e8e8lavender
Primary foreground
#4f4f4fdarkslategray
#4f4f4fdarkslategray
Secondary
#404040darkslategray
#404040darkslategray
Secondary foreground
#d9d9d9gainsboro
#d9d9d9gainsboro
Muted
#22252bdarkslategray
#22252bdarkslategray
Muted foreground
#9ba2b0darkgray
#9ba2b0darkgray
Accent
#3c3e44darkslategray
#3c3e44darkslategray
Accent foreground
#d6d8dbgainsboro
#d6d8dbgainsboro
Destructive
#e83730crimson
#e83730crimson
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#262626darkslategray
#262626darkslategray
Input
#2e2e2edarkslategray
#2e2e2edarkslategray
Ring
#e8e8e8lavender
#e8e8e8lavender

Contrast

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

Light mode
Text on background11.86:1AAA
Text on card13.96:1AAA
Primary button6.68:1AA
Secondary button7.37:1AAA
Muted text6.00:1AA
Accent7.45:1AAA
Destructive4.18:1AA Large
Dark mode
Text on background11.86:1AAA
Text on card13.96:1AAA
Primary button6.68:1AA
Secondary button7.37:1AAA
Muted text6.00:1AA
Accent7.45:1AAA
Destructive4.18:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.213 0.004 264.477);
  --foreground: oklch(0.869 0 165.964);
  --muted: oklch(0.263 0.012 264.338);
  --muted-foreground: oklch(0.712 0.022 264.424);
  --popover: oklch(0.18 0.003 264.489);
  --popover-foreground: oklch(0.947 0 180);
  --card: oklch(0.191 0.004 264.484);
  --card-foreground: oklch(0.908 0 180);
  --border: oklch(0.27 0 180);
  --input: oklch(0.301 0 189.462);
  --primary: oklch(0.931 0 180);
  --primary-foreground: oklch(0.428 0 180);
  --secondary: oklch(0.371 0 168.69);
  --secondary-foreground: oklch(0.885 0 180);
  --accent: oklch(0.365 0.009 264.451);
  --accent-foreground: oklch(0.882 0.005 264.535);
  --destructive: oklch(0.611 0.214 27.724);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.931 0 180);
  --chart-1: oklch(0.931 0 180);
  --chart-2: oklch(0.371 0 168.69);
  --chart-3: oklch(0.365 0.009 264.451);
  --chart-4: oklch(0.399 0 180);
  --chart-5: oklch(0.93 0.001 17.185);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.213 0.004 264.477);
  --foreground: oklch(0.869 0 165.964);
  --muted: oklch(0.263 0.012 264.338);
  --muted-foreground: oklch(0.712 0.022 264.424);
  --popover: oklch(0.18 0.003 264.489);
  --popover-foreground: oklch(0.947 0 180);
  --card: oklch(0.191 0.004 264.484);
  --card-foreground: oklch(0.908 0 180);
  --border: oklch(0.27 0 180);
  --input: oklch(0.301 0 189.462);
  --primary: oklch(0.931 0 180);
  --primary-foreground: oklch(0.428 0 180);
  --secondary: oklch(0.371 0 168.69);
  --secondary-foreground: oklch(0.885 0 180);
  --accent: oklch(0.365 0.009 264.451);
  --accent-foreground: oklch(0.882 0.005 264.535);
  --destructive: oklch(0.611 0.214 27.724);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.931 0 180);
  --chart-1: oklch(0.931 0 180);
  --chart-2: oklch(0.371 0 168.69);
  --chart-3: oklch(0.365 0.009 264.451);
  --chart-4: oklch(0.399 0 180);
  --chart-5: oklch(0.93 0.001 17.185);
}