IntelliJ-ish Darcula for shadcn/ui

IntelliJ-ish Darcula is a shadcn/ui theme built around a vivid orange primary color (#eab661) with muted blue accents (#444c55). The light mode uses a blue-tinted background (#22262a). Dark mode keeps the vivid orange primary (#eab661) on a blue-tinted background (#22262a).

Color palette

TokenLightDark
Background
#22262adarkslategray
#22262adarkslategray
Foreground
#d4d4d4lightgrey
#d4d4d4lightgrey
Card
#1e2125black
#1e2125black
Card foreground
#e0e0e0gainsboro
#e0e0e0gainsboro
Popover
#1b1e22black
#1b1e22black
Popover foreground
#edededwhitesmoke
#edededwhitesmoke
Primary
#eab661sandybrown
#eab661sandybrown
Primary foreground
#170f03black
#170f03black
Secondary
#53442ddarkolivegreen
#53442ddarkolivegreen
Secondary foreground
#e4dbcdgainsboro
#e4dbcdgainsboro
Muted
#2b3036darkslategray
#2b3036darkslategray
Muted foreground
#a6afb9darkgray
#a6afb9darkgray
Accent
#444c55darkslategray
#444c55darkslategray
Accent foreground
#e3e5e8gainsboro
#e3e5e8gainsboro
Destructive
#f53224orangered
#f53224orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#323334darkslategray
#323334darkslategray
Input
#3a3b3bdarkslategray
#3a3b3bdarkslategray
Ring
#eab661sandybrown
#eab661sandybrown

Contrast

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

Light mode
Text on background10.28:1AAA
Text on card12.28:1AAA
Primary button10.27:1AAA
Secondary button6.84:1AA
Muted text6.00:1AA
Accent6.92:1AA
Destructive3.92:1AA Large
Dark mode
Text on background10.28:1AAA
Text on card12.28:1AAA
Primary button10.27:1AAA
Secondary button6.84:1AA
Muted text6.00:1AA
Accent6.92:1AA
Destructive3.92:1AA Large

CSS variables

Paste this into your globals.css to use IntelliJ-ish Darcula in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.266 0.01 253.451);
  --foreground: oklch(0.869 0 165.964);
  --muted: oklch(0.306 0.014 253.482);
  --muted-foreground: oklch(0.751 0.018 253.37);
  --popover: oklch(0.235 0.008 253.438);
  --popover-foreground: oklch(0.947 0 180);
  --card: oklch(0.245 0.009 253.443);
  --card-foreground: oklch(0.908 0 180);
  --border: oklch(0.321 0.001 253.244);
  --input: oklch(0.35 0.001 253.245);
  --primary: oklch(0.807 0.119 77.602);
  --primary-foreground: oklch(0.175 0.028 81.647);
  --secondary: oklch(0.396 0.042 78.986);
  --secondary-foreground: oklch(0.896 0.021 79.873);
  --accent: oklch(0.412 0.018 253.482);
  --accent-foreground: oklch(0.922 0.005 253.256);
  --destructive: oklch(0.629 0.23 29.425);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.807 0.119 77.602);
  --chart-1: oklch(0.807 0.119 77.602);
  --chart-2: oklch(0.396 0.042 78.986);
  --chart-3: oklch(0.412 0.018 253.482);
  --chart-4: oklch(0.428 0.046 78.949);
  --chart-5: oklch(0.81 0.123 77.408);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.266 0.01 253.451);
  --foreground: oklch(0.869 0 165.964);
  --muted: oklch(0.306 0.014 253.482);
  --muted-foreground: oklch(0.751 0.018 253.37);
  --popover: oklch(0.235 0.008 253.438);
  --popover-foreground: oklch(0.947 0 180);
  --card: oklch(0.245 0.009 253.443);
  --card-foreground: oklch(0.908 0 180);
  --border: oklch(0.321 0.001 253.244);
  --input: oklch(0.35 0.001 253.245);
  --primary: oklch(0.807 0.119 77.602);
  --primary-foreground: oklch(0.175 0.028 81.647);
  --secondary: oklch(0.396 0.042 78.986);
  --secondary-foreground: oklch(0.896 0.021 79.873);
  --accent: oklch(0.412 0.018 253.482);
  --accent-foreground: oklch(0.922 0.005 253.256);
  --destructive: oklch(0.629 0.23 29.425);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.807 0.119 77.602);
  --chart-1: oklch(0.807 0.119 77.602);
  --chart-2: oklch(0.396 0.042 78.986);
  --chart-3: oklch(0.412 0.018 253.482);
  --chart-4: oklch(0.428 0.046 78.949);
  --chart-5: oklch(0.81 0.123 77.408);
}