Army for shadcn/ui

Army is a shadcn/ui theme built around a muted teal primary color (#b4cbc4) with muted pink accents (#cbb4bb). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted teal primary (#b4cbc4) on a neutral background (#020806).

Color palette

TokenLightDark
Background
#ffffffwhite
#020806black
Foreground
#010403black
#fcfdfdwhite
Card
#fcfcfcsnow
#030c09black
Card foreground
#000000black
#ffffffwhite
Popover
#ffffffwhite
#020806black
Popover foreground
#010403black
#fcfdfdwhite
Primary
#b4cbc4silver
#b4cbc4silver
Primary foreground
#1f2d29darkslategray
#1f2d29darkslategray
Secondary
#cbb4bbsilver
#cbb4bbsilver
Secondary foreground
#2d1f23black
#2d1f23black
Muted
#e3d9dcgainsboro
#261c1fblack
Muted foreground
#666666dimgray
#999999darkgray
Accent
#cbb4bbsilver
#cbb4bbsilver
Accent foreground
#2d1f23black
#2d1f23black
Destructive
#aa2b08firebrick
#f43e0borangered
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#b4cbc4silver
#b4cbc4silver

Contrast

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

Light mode
Text on background20.58:1AAA
Text on card20.54:1AAA
Primary button8.35:1AAA
Secondary button8.07:1AAA
Muted text4.15:1AA Large
Accent8.07:1AAA
Destructive6.83:1AA
Dark mode
Text on background19.79:1AAA
Text on card19.77:1AAA
Primary button8.35:1AAA
Secondary button8.07:1AAA
Muted text5.80:1AA
Accent8.07:1AAA
Destructive3.80:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0.098 0.011 176.828);
  --muted: oklch(0.894 0.012 357.03);
  --muted-foreground: oklch(0.51 0 171.87);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.098 0.011 176.828);
  --card: oklch(0.992 0 161.565);
  --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.822 0.027 175.685);
  --primary-foreground: oklch(0.284 0.02 174.389);
  --secondary: oklch(0.791 0.028 357.651);
  --secondary-foreground: oklch(0.259 0.022 359.044);
  --accent: oklch(0.791 0.028 357.651);
  --accent-foreground: oklch(0.259 0.022 359.044);
  --destructive: oklch(0.489 0.169 34.417);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.822 0.027 175.685);
  --chart-1: oklch(0.822 0.027 175.685);
  --chart-2: oklch(0.791 0.028 357.651);
  --chart-3: oklch(0.791 0.028 357.651);
  --chart-4: oklch(0.816 0.024 357.499);
  --chart-5: oklch(0.825 0.031 175.525);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.125 0.016 176.849);
  --foreground: oklch(0.994 0.002 176.602);
  --muted: oklch(0.24 0.016 358.554);
  --muted-foreground: oklch(0.683 0 180);
  --popover: oklch(0.125 0.016 176.849);
  --popover-foreground: oklch(0.994 0.002 176.602);
  --card: oklch(0.143 0.018 176.201);
  --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.822 0.027 175.685);
  --primary-foreground: oklch(0.284 0.02 174.389);
  --secondary: oklch(0.791 0.028 357.651);
  --secondary-foreground: oklch(0.259 0.022 359.044);
  --accent: oklch(0.791 0.028 357.651);
  --accent-foreground: oklch(0.259 0.022 359.044);
  --destructive: oklch(0.635 0.223 34.021);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.822 0.027 175.685);
  --chart-1: oklch(0.822 0.027 175.685);
  --chart-2: oklch(0.791 0.028 357.651);
  --chart-3: oklch(0.791 0.028 357.651);
  --chart-4: oklch(0.816 0.024 357.499);
  --chart-5: oklch(0.825 0.031 175.525);
}