IntelliJ Dark for shadcn/ui

IntelliJ Dark is a shadcn/ui theme built around a blue primary color (#4c8ac8) with neutral gray accents (#525252). The light mode uses a neutral background (#2b2b2b). Dark mode keeps the blue primary (#4c8ac8) on a neutral background (#2b2b2b).

Color palette

TokenLightDark
Background
#2b2b2bdarkslategray
#2b2b2bdarkslategray
Foreground
#a9b7c6silver
#a9b7c6silver
Card
#262626darkslategray
#262626darkslategray
Card foreground
#b9c4d0lightsteelblue
#b9c4d0lightsteelblue
Popover
#242424darkslategray
#242424darkslategray
Popover foreground
#c8d1dalightgrey
#c8d1dalightgrey
Primary
#4c8ac8steelblue
#4c8ac8steelblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#acbfd2lightsteelblue
#acbfd2lightsteelblue
Secondary foreground
#1b2632darkslategray
#1b2632darkslategray
Muted
#3c2f2fdarkslategray
#3c2f2fdarkslategray
Muted foreground
#beacacdarkgray
#beacacdarkgray
Accent
#525252darkslategray
#525252darkslategray
Accent foreground
#ebebeblinen
#ebebeblinen
Destructive
#f03c28orangered
#f03c28orangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#383838darkslategray
#383838darkslategray
Input
#404040darkslategray
#404040darkslategray
Ring
#4c8ac8steelblue
#4c8ac8steelblue

Contrast

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

Light mode
Text on background6.89:1AA
Text on card8.52:1AAA
Primary button3.64:1AA Large
Secondary button8.15:1AAA
Muted text5.89:1AA
Accent6.59:1AA
Destructive3.89:1AA Large
Dark mode
Text on background6.89:1AA
Text on card8.52:1AAA
Primary button3.64:1AA Large
Secondary button8.15:1AAA
Muted text5.89:1AA
Accent6.59:1AA
Destructive3.89:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.29 0 180);
  --foreground: oklch(0.774 0.026 249.951);
  --muted: oklch(0.32 0.019 18.181);
  --muted-foreground: oklch(0.76 0.021 17.613);
  --popover: oklch(0.259 0 167.471);
  --popover-foreground: oklch(0.856 0.016 249.825);
  --card: oklch(0.27 0 180);
  --card-foreground: oklch(0.815 0.021 249.884);
  --border: oklch(0.341 0 158.199);
  --input: oklch(0.371 0 168.69);
  --primary: oklch(0.618 0.115 250.173);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.797 0.034 248.258);
  --secondary-foreground: oklch(0.264 0.027 248.879);
  --accent: oklch(0.437 0 180);
  --accent-foreground: oklch(0.939 0 180);
  --destructive: oklch(0.629 0.218 30.37);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.618 0.115 250.173);
  --chart-1: oklch(0.618 0.115 250.173);
  --chart-2: oklch(0.797 0.034 248.258);
  --chart-3: oklch(0.437 0 180);
  --chart-4: oklch(0.822 0.03 248.193);
  --chart-5: oklch(0.619 0.121 250.374);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.29 0 180);
  --foreground: oklch(0.774 0.026 249.951);
  --muted: oklch(0.32 0.019 18.181);
  --muted-foreground: oklch(0.76 0.021 17.613);
  --popover: oklch(0.259 0 167.471);
  --popover-foreground: oklch(0.856 0.016 249.825);
  --card: oklch(0.27 0 180);
  --card-foreground: oklch(0.815 0.021 249.884);
  --border: oklch(0.341 0 158.199);
  --input: oklch(0.371 0 168.69);
  --primary: oklch(0.618 0.115 250.173);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.797 0.034 248.258);
  --secondary-foreground: oklch(0.264 0.027 248.879);
  --accent: oklch(0.437 0 180);
  --accent-foreground: oklch(0.939 0 180);
  --destructive: oklch(0.629 0.218 30.37);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.618 0.115 250.173);
  --chart-1: oklch(0.618 0.115 250.173);
  --chart-2: oklch(0.797 0.034 248.258);
  --chart-3: oklch(0.437 0 180);
  --chart-4: oklch(0.822 0.03 248.193);
  --chart-5: oklch(0.619 0.121 250.374);
}