Armament for shadcn/ui

Armament is a shadcn/ui theme built around a light green primary color (#bde4aa) with light pink accents (#e4aabd). The light mode uses a neutral background (#f9fcf8). Dark mode keeps the light green primary (#bde4aa) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#f9fcf8mintcream
#000000black
Foreground
#040802black
#ffffffwhite
Card
#f7faf5whitesmoke
#030303black
Card foreground
#020401black
#ffffffwhite
Popover
#f9fcf8mintcream
#000000black
Popover foreground
#040802black
#ffffffwhite
Primary
#bde4aasilver
#bde4aasilver
Primary foreground
#264516darkgreen
#264516darkgreen
Secondary
#aabde4lightsteelblue
#aabde4lightsteelblue
Secondary foreground
#162645midnightblue
#162645midnightblue
Muted
#e4e5e7gainsboro
#18191bblack
Muted foreground
#59606edimgray
#9198a6darkgray
Accent
#e4aabdlightpink
#e4aabdlightpink
Accent foreground
#451626maroon
#451626maroon
Destructive
#8d2907saddlebrown
#f56738tomato
Destructive foreground
#fcd6cabisque
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#bde4aasilver
#bde4aasilver

Contrast

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

Light mode
Text on background19.47:1AAA
Text on card19.50:1AAA
Primary button7.60:1AAA
Secondary button7.97:1AAA
Muted text5.01:1AA
Accent7.73:1AAA
Destructive6.39:1AA
Dark mode
Text on background21.00:1AAA
Text on card20.67:1AAA
Primary button7.60:1AAA
Secondary button7.97:1AAA
Muted text6.06:1AA
Accent7.73:1AAA
Destructive6.88:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.005 134.851);
  --foreground: oklch(0.125 0.02 133.27);
  --muted: oklch(0.922 0.002 264.543);
  --muted-foreground: oklch(0.487 0.025 264.309);
  --popover: oklch(0.987 0.005 134.851);
  --popover-foreground: oklch(0.125 0.02 133.27);
  --card: oklch(0.981 0.007 134.864);
  --card-foreground: oklch(0.099 0.016 133.27);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.876 0.087 135.364);
  --primary-foreground: oklch(0.355 0.082 136.609);
  --secondary: oklch(0.798 0.058 264.166);
  --secondary-foreground: oklch(0.273 0.062 262.892);
  --accent: oklch(0.797 0.071 357.044);
  --accent-foreground: oklch(0.281 0.074 2.323);
  --destructive: oklch(0.432 0.14 36.421);
  --destructive-foreground: oklch(0.906 0.046 39.283);
  --ring: oklch(0.876 0.087 135.364);
  --chart-1: oklch(0.876 0.087 135.364);
  --chart-2: oklch(0.798 0.058 264.166);
  --chart-3: oklch(0.797 0.071 357.044);
  --chart-4: oklch(0.826 0.05 264.253);
  --chart-5: oklch(0.878 0.091 135.397);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.214 0.004 264.492);
  --muted-foreground: oklch(0.678 0.023 264.41);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.092 0 180);
  --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.876 0.087 135.364);
  --primary-foreground: oklch(0.355 0.082 136.609);
  --secondary: oklch(0.798 0.058 264.166);
  --secondary-foreground: oklch(0.273 0.062 262.892);
  --accent: oklch(0.797 0.071 357.044);
  --accent-foreground: oklch(0.281 0.074 2.323);
  --destructive: oklch(0.685 0.184 38.285);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.876 0.087 135.364);
  --chart-1: oklch(0.876 0.087 135.364);
  --chart-2: oklch(0.798 0.058 264.166);
  --chart-3: oklch(0.797 0.071 357.044);
  --chart-4: oklch(0.826 0.05 264.253);
  --chart-5: oklch(0.878 0.091 135.397);
}