Inc Deep Night for shadcn/ui

Inc Deep Night is a shadcn/ui theme built around a neutral gray primary color (#474a52) with neutral gray accents (#4a4752). The light mode uses a neutral background (#ffffff). Dark mode keeps the neutral gray primary (#474a52) on a neutral background (#030407).

Color palette

TokenLightDark
Background
#ffffffwhite
#030407black
Foreground
#000000black
#ffffffwhite
Card
#ffffffwhite
#030407black
Card foreground
#000000black
#ffffffwhite
Popover
#ffffffwhite
#030407black
Popover foreground
#000000black
#ffffffwhite
Primary
#474a52darkslategray
#474a52darkslategray
Primary foreground
#e4e5e7gainsboro
#e4e5e7gainsboro
Secondary
#474f52darkslategray
#474f52darkslategray
Secondary foreground
#e4e6e7gainsboro
#e4e6e7gainsboro
Muted
#ebeeefwhitesmoke
#101314black
Muted foreground
#4a5d64dimgray
#9bafb5darkgray
Accent
#4a4752darkslategray
#4a4752darkslategray
Accent foreground
#e5e4e7gainsboro
#e5e4e7gainsboro
Destructive
#8b100edarkred
#e81a17crimson
Destructive foreground
#fad1d1pink
#ffffffwhite
Border
#e5e5e6gainsboro
#19191ablack
Input
#e5e5e6gainsboro
#19191ablack
Ring
#474a52darkslategray
#474a52darkslategray

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button7.04:1AAA
Secondary button6.67:1AA
Muted text5.92:1AA
Accent7.15:1AAA
Destructive6.92:1AA
Dark mode
Text on background20.46:1AAA
Text on card20.46:1AAA
Primary button7.04:1AAA
Secondary button6.67:1AA
Muted text8.18:1AAA
Accent7.15:1AAA
Destructive4.56:1AA

CSS variables

Paste this into your globals.css to use Inc Deep Night in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.947 0.003 219.531);
  --muted-foreground: oklch(0.465 0.026 220.123);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.922 0.002 271.393);
  --input: oklch(0.922 0.002 271.393);
  --primary: oklch(0.409 0.014 271.064);
  --primary-foreground: oklch(0.921 0.004 271.371);
  --secondary: oklch(0.422 0.011 219.737);
  --secondary-foreground: oklch(0.924 0.003 219.532);
  --accent: oklch(0.405 0.018 297.03);
  --accent-foreground: oklch(0.92 0.005 297.73);
  --destructive: oklch(0.408 0.156 28.317);
  --destructive-foreground: oklch(0.896 0.046 19.2);
  --ring: oklch(0.409 0.014 271.064);
  --chart-1: oklch(0.409 0.014 271.064);
  --chart-2: oklch(0.422 0.011 219.737);
  --chart-3: oklch(0.405 0.018 297.03);
  --chart-4: oklch(0.45 0.012 219.741);
  --chart-5: oklch(0.405 0.02 270.887);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.109 0.009 267.627);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.183 0.005 219.723);
  --muted-foreground: oklch(0.74 0.024 219.795);
  --popover: oklch(0.109 0.009 267.627);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.109 0.009 267.627);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.214 0.002 271.307);
  --input: oklch(0.214 0.002 271.307);
  --primary: oklch(0.409 0.014 271.064);
  --primary-foreground: oklch(0.921 0.004 271.371);
  --secondary: oklch(0.422 0.011 219.737);
  --secondary-foreground: oklch(0.924 0.003 219.532);
  --accent: oklch(0.405 0.018 297.03);
  --accent-foreground: oklch(0.92 0.005 297.73);
  --destructive: oklch(0.592 0.232 28.676);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.409 0.014 271.064);
  --chart-1: oklch(0.409 0.014 271.064);
  --chart-2: oklch(0.422 0.011 219.737);
  --chart-3: oklch(0.405 0.018 297.03);
  --chart-4: oklch(0.45 0.012 219.741);
  --chart-5: oklch(0.405 0.02 270.887);
}