Chief for shadcn/ui

Chief is a shadcn/ui theme built around a light green primary color (#f3fbe9) with light pink accents (#fbe9f3). The light mode uses a neutral background (#fafdf7). Dark mode keeps the light green primary (#f3fbe9) on a green-tinted background (#0a0d07).

Color palette

TokenLightDark
Background
#fafdf7mintcream
#0a0d07black
Foreground
#050901black
#fdfdfcwhite
Card
#fafdf7mintcream
#0a0d07black
Card foreground
#050901black
#fdfdfcwhite
Popover
#fafdf7mintcream
#0a0d07black
Popover foreground
#050901black
#fdfdfcwhite
Primary
#f3fbe9honeydew
#f3fbe9honeydew
Primary foreground
#28420bdarkgreen
#28420bdarkgreen
Secondary
#e9f3fbaliceblue
#e9f3fbaliceblue
Secondary foreground
#195e9ateal
#195e9ateal
Muted
#eaf0f5lavender
#0a1015black
Muted foreground
#4a5259darkslategray
#a6aeb5darkgray
Accent
#fbe9f3lavenderblush
#fbe9f3lavenderblush
Accent foreground
#9a195epurple
#9a195epurple
Destructive
#691502maroon
#fa4219orangered
Destructive foreground
#fdb1a0lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f3fbe9honeydew
#f3fbe9honeydew

Contrast

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

Light mode
Text on background19.54:1AAA
Text on card19.54:1AAA
Primary button10.58:1AAA
Secondary button6.00:1AA
Muted text6.92:1AA
Accent6.75:1AA
Destructive7.00:1AAA
Dark mode
Text on background19.17:1AAA
Text on card19.17:1AAA
Primary button10.58:1AAA
Secondary button6.00:1AA
Muted text8.52:1AAA
Accent6.75:1AA
Destructive3.57: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.99 0.008 127.215);
  --foreground: oklch(0.13 0.026 125.823);
  --muted: oklch(0.952 0.009 244.212);
  --muted-foreground: oklch(0.434 0.015 244.522);
  --popover: oklch(0.99 0.008 127.215);
  --popover-foreground: oklch(0.13 0.026 125.823);
  --card: oklch(0.99 0.008 127.215);
  --card-foreground: oklch(0.13 0.026 125.823);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.978 0.026 127.438);
  --primary-foreground: oklch(0.345 0.085 131.692);
  --secondary: oklch(0.959 0.016 244.291);
  --secondary-foreground: oklch(0.471 0.117 249.751);
  --accent: oklch(0.952 0.024 344.056);
  --accent-foreground: oklch(0.459 0.171 354.411);
  --destructive: oklch(0.342 0.12 33.897);
  --destructive-foreground: oklch(0.829 0.093 33.115);
  --ring: oklch(0.978 0.026 127.438);
  --chart-1: oklch(0.978 0.026 127.438);
  --chart-2: oklch(0.959 0.016 244.291);
  --chart-3: oklch(0.952 0.024 344.056);
  --chart-4: oklch(0.984 0.006 244.168);
  --chart-5: oklch(0.979 0.027 127.451);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.155 0.014 127.498);
  --foreground: oklch(0.994 0.002 127.139);
  --muted: oklch(0.168 0.014 245.204);
  --muted-foreground: oklch(0.746 0.013 244.31);
  --popover: oklch(0.155 0.014 127.498);
  --popover-foreground: oklch(0.994 0.002 127.139);
  --card: oklch(0.155 0.014 127.498);
  --card-foreground: oklch(0.994 0.002 127.139);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.978 0.026 127.438);
  --primary-foreground: oklch(0.345 0.085 131.692);
  --secondary: oklch(0.959 0.016 244.291);
  --secondary-foreground: oklch(0.471 0.117 249.751);
  --accent: oklch(0.952 0.024 344.056);
  --accent-foreground: oklch(0.459 0.171 354.411);
  --destructive: oklch(0.651 0.225 33.385);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.978 0.026 127.438);
  --chart-1: oklch(0.978 0.026 127.438);
  --chart-2: oklch(0.959 0.016 244.291);
  --chart-3: oklch(0.952 0.024 344.056);
  --chart-4: oklch(0.984 0.006 244.168);
  --chart-5: oklch(0.979 0.027 127.451);
}