Back In Black Harrier for shadcn/ui

Back In Black Harrier is a shadcn/ui theme built around a muted deep indigo primary color (#17151e) with muted light indigo accents (#dad7e4). The light mode uses a neutral background (#fcfbfe). Dark mode keeps the muted deep indigo primary (#17151e) on a neutral background (#020204).

Color palette

TokenLightDark
Background
#fcfbfewhite
#020204black
Foreground
#070416black
#f9f9fbghostwhite
Card
#f8f7fdghostwhite
#040307black
Card foreground
#060311black
#fcfcfdwhite
Popover
#fcfbfewhite
#020204black
Popover foreground
#070416black
#f9f9fbghostwhite
Primary
#17151eblack
#17151eblack
Primary foreground
#f6f5fdghostwhite
#aaa5c0darkgray
Secondary
#dad7e4gainsboro
#212027black
Secondary foreground
#3c3753darkslategray
#b9b6c3silver
Muted
#e9e7f4lavender
#0e0b18black
Muted foreground
#58575cdimgray
#a4a3a8darkgray
Accent
#dad7e4gainsboro
#212027black
Accent foreground
#3c3753darkslategray
#b9b6c3silver
Destructive
#db1200red
#ff1500red
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e2e2e4gainsboro
#1b1b1dblack
Input
#e2e2e4gainsboro
#1b1b1dblack
Ring
#17151eblack
#17151eblack

Contrast

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

Light mode
Text on background19.62:1AAA
Text on card19.19:1AAA
Primary button16.68:1AAA
Secondary button7.96:1AAA
Muted text5.85:1AA
Accent7.96:1AAA
Destructive5.10:1AA
Dark mode
Text on background19.76:1AAA
Text on card20.05:1AAA
Primary button7.61:1AAA
Secondary button8.08:1AAA
Muted text7.75:1AAA
Accent8.08:1AAA
Destructive3.91:1AA Large

CSS variables

Paste this into your globals.css to use Back In Black Harrier in your shadcn/ui project.

:root {
  --radius: 0.5rem;
  --background: oklch(0.99 0.003 294.759);
  --foreground: oklch(0.126 0.042 290.205);
  --muted: oklch(0.933 0.017 294.477);
  --muted-foreground: oklch(0.458 0.009 294.472);
  --popover: oklch(0.99 0.003 294.759);
  --popover-foreground: oklch(0.126 0.042 290.205);
  --card: oklch(0.979 0.007 294.692);
  --card-foreground: oklch(0.116 0.037 291.532);
  --border: oklch(0.913 0.003 294.762);
  --input: oklch(0.913 0.003 294.762);
  --primary: oklch(0.202 0.017 293.199);
  --primary-foreground: oklch(0.972 0.011 294.607);
  --secondary: oklch(0.886 0.018 294.441);
  --secondary-foreground: oklch(0.355 0.048 292.204);
  --accent: oklch(0.886 0.018 294.441);
  --accent-foreground: oklch(0.355 0.048 292.204);
  --destructive: oklch(0.565 0.226 30.109);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.202 0.017 293.199);
  --chart-1: oklch(0.202 0.017 293.199);
  --chart-2: oklch(0.886 0.018 294.441);
  --chart-3: oklch(0.886 0.018 294.441);
  --chart-4: oklch(0.912 0.014 294.541);
  --chart-5: oklch(0.2 0.02 292.872);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.082 0.012 294.007);
  --foreground: oklch(0.983 0.002 294.78);
  --muted: oklch(0.162 0.027 291.515);
  --muted-foreground: oklch(0.718 0.008 294.624);
  --popover: oklch(0.082 0.012 294.007);
  --popover-foreground: oklch(0.983 0.002 294.78);
  --card: oklch(0.103 0.015 294.007);
  --card-foreground: oklch(0.991 0.001 294.802);
  --border: oklch(0.223 0.004 294.462);
  --input: oklch(0.223 0.004 294.462);
  --primary: oklch(0.202 0.017 293.199);
  --primary-foreground: oklch(0.736 0.037 293.867);
  --secondary: oklch(0.249 0.013 293.803);
  --secondary-foreground: oklch(0.783 0.019 294.377);
  --accent: oklch(0.249 0.013 293.803);
  --accent-foreground: oklch(0.783 0.019 294.377);
  --destructive: oklch(0.632 0.254 30.001);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.202 0.017 293.199);
  --chart-1: oklch(0.202 0.017 293.199);
  --chart-2: oklch(0.249 0.013 293.803);
  --chart-3: oklch(0.249 0.013 293.803);
  --chart-4: oklch(0.278 0.016 293.745);
  --chart-5: oklch(0.2 0.02 292.872);
}