Chief for shadcn/ui

Chief is a shadcn/ui theme built around a near-black primary color (#040500) with near-black accents (#050004). The light mode uses a neutral background (#fbfcf8). Dark mode keeps the near-black primary (#040500) on a neutral background (#070802).

Color palette

TokenLightDark
Background
#fbfcf8snow
#070802black
Foreground
#030401black
#fdfdfcwhite
Card
#f9faf4whitesmoke
#0a0c04black
Card foreground
#000000black
#ffffffwhite
Popover
#f9faf4whitesmoke
#0a0c04black
Popover foreground
#000000black
#ffffffwhite
Primary
#040500black
#040500black
Primary foreground
#a9ca07yellowgreen
#a9ca07yellowgreen
Secondary
#000405black
#000405black
Secondary foreground
#07a9cadarkturquoise
#07a9cadarkturquoise
Muted
#ddebeelavender
#111f22black
Muted foreground
#545859dimgray
#a6aaabdarkgray
Accent
#050004black
#050004black
Accent foreground
#f83fd9hotpink
#f83fd9hotpink
Destructive
#9e3e0asaddlebrown
#eb5c0fchocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#040500black
#040500black

Contrast

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

Light mode
Text on background19.93:1AAA
Text on card20.05:1AAA
Primary button10.84:1AAA
Secondary button7.38:1AAA
Muted text5.90:1AA
Accent6.64:1AA
Destructive6.66:1AA
Dark mode
Text on background19.76:1AAA
Text on card19.69:1AAA
Primary button10.84:1AAA
Secondary button7.38:1AAA
Muted text7.18:1AAA
Accent6.64:1AA
Destructive3.46:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.005 114.163);
  --foreground: oklch(0.102 0.013 114.815);
  --muted: oklch(0.931 0.016 211.04);
  --muted-foreground: oklch(0.458 0.006 211.038);
  --popover: oklch(0.984 0.008 114.212);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(0.984 0.008 114.212);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.109 0.023 115.254);
  --primary-foreground: oklch(0.786 0.187 120.664);
  --secondary: oklch(0.099 0.016 205.836);
  --secondary-foreground: oklch(0.68 0.121 218.115);
  --accent: oklch(0.081 0.033 332.579);
  --accent-foreground: oklch(0.694 0.265 335.874);
  --destructive: oklch(0.49 0.14 42.812);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.109 0.023 115.254);
  --chart-1: oklch(0.109 0.023 115.254);
  --chart-2: oklch(0.099 0.016 205.836);
  --chart-3: oklch(0.081 0.033 332.579);
  --chart-4: oklch(0.161 0.026 209.661);
  --chart-5: oklch(0.11 0.024 115.281);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.129 0.017 114.839);
  --foreground: oklch(0.994 0.001 114.094);
  --muted: oklch(0.229 0.021 211.604);
  --muted-foreground: oklch(0.735 0.005 211.039);
  --popover: oklch(0.148 0.02 115.151);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.148 0.02 115.151);
  --card-foreground: oklch(1 0 180);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.109 0.023 115.254);
  --primary-foreground: oklch(0.786 0.187 120.664);
  --secondary: oklch(0.099 0.016 205.836);
  --secondary-foreground: oklch(0.68 0.121 218.115);
  --accent: oklch(0.081 0.033 332.579);
  --accent-foreground: oklch(0.694 0.265 335.874);
  --destructive: oklch(0.653 0.192 42.053);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.109 0.023 115.254);
  --chart-1: oklch(0.109 0.023 115.254);
  --chart-2: oklch(0.099 0.016 205.836);
  --chart-3: oklch(0.081 0.033 332.579);
  --chart-4: oklch(0.161 0.026 209.661);
  --chart-5: oklch(0.11 0.024 115.281);
}