Armament for shadcn/ui

Armament is a shadcn/ui theme built around a muted green primary color (#7d884e) with muted purple accents (#884e7d). The light mode uses a neutral background (#fcfdf6). Dark mode keeps the muted green primary (#7d884e) on a green-tinted background (#0d0e07).

Color palette

TokenLightDark
Background
#fcfdf6snow
#0d0e07black
Foreground
#121604black
#fbfbf9snow
Card
#fcfdf6snow
#0d0e07black
Card foreground
#121604black
#fbfbf9snow
Popover
#fcfdf6snow
#0d0e07black
Popover foreground
#121604black
#fbfbf9snow
Primary
#7d884edimgray
#7d884edimgray
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#4e7d88slategray
#4e7d88slategray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#eceeeewhitesmoke
#111313black
Muted foreground
#4b5e63dimgray
#9cb0b4darkgray
Accent
#884e7ddimgray
#884e7ddimgray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#b20e06firebrick
#f9392ftomato
Destructive foreground
#feeceblinen
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#7d884edimgray
#7d884edimgray

Contrast

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

Light mode
Text on background18.02:1AAA
Text on card18.02:1AAA
Primary button3.81:1AA Large
Secondary button4.53:1AA
Muted text5.84:1AA
Accent6.10:1AA
Destructive6.21:1AA
Dark mode
Text on background18.74:1AAA
Text on card18.74:1AAA
Primary button3.81:1AA Large
Secondary button4.53:1AA
Muted text8.26:1AAA
Accent6.10:1AA
Destructive3.72:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.993 0.009 115);
  --foreground: oklch(0.189 0.034 117.749);
  --muted: oklch(0.947 0.002 212.663);
  --muted-foreground: oklch(0.469 0.025 212.883);
  --popover: oklch(0.993 0.009 115);
  --popover-foreground: oklch(0.189 0.034 117.749);
  --card: oklch(0.993 0.009 115);
  --card-foreground: oklch(0.189 0.034 117.749);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.604 0.081 117.403);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.561 0.054 213.489);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.509 0.101 334.002);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.484 0.192 29.56);
  --destructive-foreground: oklch(0.958 0.02 21.159);
  --ring: oklch(0.604 0.081 117.403);
  --chart-1: oklch(0.604 0.081 117.403);
  --chart-2: oklch(0.561 0.054 213.489);
  --chart-3: oklch(0.509 0.101 334.002);
  --chart-4: oklch(0.59 0.057 213.501);
  --chart-5: oklch(0.613 0.089 117.637);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.159 0.016 116.208);
  --foreground: oklch(0.987 0.003 114.879);
  --muted: oklch(0.183 0.003 212.684);
  --muted-foreground: oklch(0.743 0.023 212.735);
  --popover: oklch(0.159 0.016 116.208);
  --popover-foreground: oklch(0.987 0.003 114.879);
  --card: oklch(0.159 0.016 116.208);
  --card-foreground: oklch(0.987 0.003 114.879);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.604 0.081 117.403);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.561 0.054 213.489);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.509 0.101 334.002);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.642 0.228 28.529);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.604 0.081 117.403);
  --chart-1: oklch(0.604 0.081 117.403);
  --chart-2: oklch(0.561 0.054 213.489);
  --chart-3: oklch(0.509 0.101 334.002);
  --chart-4: oklch(0.59 0.057 213.501);
  --chart-5: oklch(0.613 0.089 117.637);
}