Armor for shadcn/ui

Armor is a shadcn/ui theme built around a light green primary color (#f0f6ea) with light violet accents (#f0eaf6). The light mode uses a neutral background (#fafdf7). Dark mode keeps the light green primary (#f0f6ea) on a green-tinted background (#080c04).

Color palette

TokenLightDark
Background
#fafdf7mintcream
#080c04black
Foreground
#0d1406black
#fcfdfcwhite
Card
#f7fbf3whitesmoke
#0a1005black
Card foreground
#0a1005black
#ffffffwhite
Popover
#f7fbf3whitesmoke
#0a1005black
Popover foreground
#0a1005black
#ffffffwhite
Primary
#f0f6eahoneydew
#f0f6eahoneydew
Primary foreground
#243216darkslategray
#243216darkslategray
Secondary
#f0eaf6lavender
#f0eaf6lavender
Secondary foreground
#563579darkslateblue
#563579darkslateblue
Muted
#d8cde5gainsboro
#261a32darkslategray
Muted foreground
#5b5365dimgray
#a39aacdarkgray
Accent
#f0eaf6lavender
#f0eaf6lavender
Accent foreground
#563579darkslateblue
#563579darkslateblue
Destructive
#8a230fsaddlebrown
#ea5234tomato
Destructive foreground
#fad8d1bisque
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#f0f6eahoneydew
#f0f6eahoneydew

Contrast

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

Light mode
Text on background18.23:1AAA
Text on card18.47:1AAA
Primary button12.33:1AAA
Secondary button8.13:1AAA
Muted text4.78:1AA
Accent8.13:1AAA
Destructive6.76:1AA
Dark mode
Text on background19.38:1AAA
Text on card19.32:1AAA
Primary button12.33:1AAA
Secondary button8.13:1AAA
Muted text6.09:1AA
Accent8.13:1AAA
Destructive3.65:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.989 0.008 127.881);
  --foreground: oklch(0.178 0.029 129.277);
  --muted: oklch(0.864 0.036 307.308);
  --muted-foreground: oklch(0.456 0.031 306.988);
  --popover: oklch(0.984 0.012 127.928);
  --popover-foreground: oklch(0.161 0.025 128.225);
  --card: oklch(0.984 0.012 127.928);
  --card-foreground: oklch(0.161 0.025 128.225);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.965 0.017 127.996);
  --primary-foreground: oklch(0.295 0.05 130.137);
  --secondary: oklch(0.944 0.017 307.579);
  --secondary-foreground: oklch(0.401 0.113 304.066);
  --accent: oklch(0.944 0.017 307.579);
  --accent-foreground: oklch(0.401 0.113 304.066);
  --destructive: oklch(0.422 0.142 33.003);
  --destructive-foreground: oklch(0.908 0.04 31.19);
  --ring: oklch(0.965 0.017 127.996);
  --chart-1: oklch(0.965 0.017 127.996);
  --chart-2: oklch(0.944 0.017 307.579);
  --chart-3: oklch(0.944 0.017 307.579);
  --chart-4: oklch(0.972 0.008 307.687);
  --chart-5: oklch(0.965 0.018 128.011);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.145 0.021 126.957);
  --foreground: oklch(0.993 0.002 127.807);
  --muted: oklch(0.245 0.048 305.402);
  --muted-foreground: oklch(0.7 0.028 307.319);
  --popover: oklch(0.161 0.024 128.22);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.161 0.024 128.22);
  --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.965 0.017 127.996);
  --primary-foreground: oklch(0.295 0.05 130.137);
  --secondary: oklch(0.944 0.017 307.579);
  --secondary-foreground: oklch(0.401 0.113 304.066);
  --accent: oklch(0.944 0.017 307.579);
  --accent-foreground: oklch(0.401 0.113 304.066);
  --destructive: oklch(0.641 0.193 33.212);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.965 0.017 127.996);
  --chart-1: oklch(0.965 0.017 127.996);
  --chart-2: oklch(0.944 0.017 307.579);
  --chart-3: oklch(0.944 0.017 307.579);
  --chart-4: oklch(0.972 0.008 307.687);
  --chart-5: oklch(0.965 0.018 128.011);
}