Chief for shadcn/ui

Chief is a shadcn/ui theme built around a deep green primary color (#233512) with deep green accents (#123513). The light mode uses a neutral background (#fcfefb). Dark mode keeps the deep green primary (#233512) on a neutral background (#020401).

Color palette

TokenLightDark
Background
#fcfefbwhite
#020401black
Foreground
#050802black
#ffffffwhite
Card
#fcfefbwhite
#020401black
Card foreground
#050802black
#ffffffwhite
Popover
#fcfefbwhite
#020401black
Popover foreground
#050802black
#ffffffwhite
Primary
#233512darkgreen
#233512darkgreen
Primary foreground
#86c350yellowgreen
#86c350yellowgreen
Secondary
#343512darkslategray
#343512darkslategray
Secondary foreground
#bfc350darkkhaki
#bfc350darkkhaki
Muted
#ededdebeige
#212112black
Muted foreground
#51514ddarkslategray
#b1b2aedarkgray
Accent
#123513darkgreen
#123513darkgreen
Accent foreground
#50c354mediumseagreen
#50c354mediumseagreen
Destructive
#640a07maroon
#db160fred
Destructive foreground
#f9a7a4lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#233512darkgreen
#233512darkgreen

Contrast

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

Light mode
Text on background19.89:1AAA
Text on card19.89:1AAA
Primary button6.24:1AA
Secondary button6.67:1AA
Muted text6.74:1AA
Accent5.98:1AA
Destructive6.97:1AA
Dark mode
Text on background20.57:1AAA
Text on card20.57:1AAA
Primary button6.24:1AA
Secondary button6.67:1AA
Muted text7.62:1AAA
Accent5.98:1AA
Destructive5.06:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.005 129.831);
  --foreground: oklch(0.127 0.022 128.436);
  --muted: oklch(0.942 0.02 108.332);
  --muted-foreground: oklch(0.432 0.005 108.156);
  --popover: oklch(0.995 0.005 129.831);
  --popover-foreground: oklch(0.127 0.022 128.436);
  --card: oklch(0.995 0.005 129.831);
  --card-foreground: oklch(0.127 0.022 128.436);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.304 0.062 132.422);
  --primary-foreground: oklch(0.752 0.16 132.635);
  --secondary: oklch(0.32 0.053 110.818);
  --secondary-foreground: oklch(0.792 0.138 110.94);
  --accent: oklch(0.294 0.071 144.088);
  --accent-foreground: oklch(0.727 0.184 143.944);
  --destructive: oklch(0.324 0.122 28.757);
  --destructive-foreground: oklch(0.808 0.097 21.605);
  --ring: oklch(0.304 0.062 132.422);
  --chart-1: oklch(0.304 0.062 132.422);
  --chart-2: oklch(0.32 0.053 110.818);
  --chart-3: oklch(0.294 0.071 144.088);
  --chart-4: oklch(0.362 0.062 110.902);
  --chart-5: oklch(0.307 0.065 132.591);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.1 0.015 128.615);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.243 0.027 109.875);
  --muted-foreground: oklch(0.761 0.004 108.047);
  --popover: oklch(0.1 0.015 128.615);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.1 0.015 128.615);
  --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.304 0.062 132.422);
  --primary-foreground: oklch(0.752 0.16 132.635);
  --secondary: oklch(0.32 0.053 110.818);
  --secondary-foreground: oklch(0.792 0.138 110.94);
  --accent: oklch(0.294 0.071 144.088);
  --accent-foreground: oklch(0.727 0.184 143.944);
  --destructive: oklch(0.567 0.224 29.145);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.304 0.062 132.422);
  --chart-1: oklch(0.304 0.062 132.422);
  --chart-2: oklch(0.32 0.053 110.818);
  --chart-3: oklch(0.294 0.071 144.088);
  --chart-4: oklch(0.362 0.062 110.902);
  --chart-5: oklch(0.307 0.065 132.591);
}