Ammunition for shadcn/ui

Ammunition is a shadcn/ui theme built around a vivid teal primary color (#28ebde) with vivid blue accents (#2897eb). The light mode uses a neutral background (#fbfefe). Dark mode keeps the vivid teal primary (#28ebde) on a neutral background (#000000).

Color palette

TokenLightDark
Background
#fbfefewhite
#000000black
Foreground
#051514black
#fcfdfdwhite
Card
#f6fdfdmintcream
#030303black
Card foreground
#041110black
#ffffffwhite
Popover
#fbfefewhite
#000000black
Popover foreground
#051514black
#fcfdfdwhite
Primary
#28ebdeturquoise
#28ebdeturquoise
Primary foreground
#06413ddarkslategray
#06413ddarkslategray
Secondary
#28eb7dspringgreen
#28eb7dspringgreen
Secondary foreground
#064120darkgreen
#064120darkgreen
Muted
#e0f0e7lavender
#0f1f16black
Muted foreground
#3d433fdarkslategray
#bcc2bfsilver
Accent
#2897ebdodgerblue
#2897ebdodgerblue
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#c63e15firebrick
#eb663dtomato
Destructive foreground
#ffffffwhite
#000000black
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#28ebdeturquoise
#28ebdeturquoise

Contrast

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

Light mode
Text on background18.44:1AAA
Text on card18.72:1AAA
Primary button7.66:1AAA
Secondary button7.43:1AAA
Muted text8.57:1AAA
Accent3.13:1AA Large
Destructive5.09:1AA
Dark mode
Text on background20.60:1AAA
Text on card20.67:1AAA
Primary button7.66:1AAA
Secondary button7.43:1AAA
Muted text9.47:1AAA
Accent3.13:1AA Large
Destructive6.47:1AA

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.995 0.004 192.348);
  --foreground: oklch(0.18 0.023 189.846);
  --muted: oklch(0.941 0.02 161.279);
  --muted-foreground: oklch(0.375 0.01 161.124);
  --popover: oklch(0.995 0.004 192.348);
  --popover-foreground: oklch(0.18 0.023 189.846);
  --card: oklch(0.99 0.008 192.268);
  --card-foreground: oklch(0.163 0.02 190.262);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.85 0.143 187.552);
  --primary-foreground: oklch(0.341 0.056 187.819);
  --secondary: oklch(0.827 0.21 151.677);
  --secondary-foreground: oklch(0.332 0.082 152.382);
  --accent: oklch(0.656 0.157 247.159);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.558 0.18 35.955);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.85 0.143 187.552);
  --chart-1: oklch(0.85 0.143 187.552);
  --chart-2: oklch(0.827 0.21 151.677);
  --chart-3: oklch(0.656 0.157 247.159);
  --chart-4: oklch(0.833 0.201 152.646);
  --chart-5: oklch(0.859 0.145 187.427);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0 0 0);
  --foreground: oklch(0.993 0.002 192.394);
  --muted: oklch(0.221 0.028 158.276);
  --muted-foreground: oklch(0.809 0.009 161.549);
  --popover: oklch(0 0 0);
  --popover-foreground: oklch(0.993 0.002 192.394);
  --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.85 0.143 187.552);
  --primary-foreground: oklch(0.341 0.056 187.819);
  --secondary: oklch(0.827 0.21 151.677);
  --secondary-foreground: oklch(0.332 0.082 152.382);
  --accent: oklch(0.656 0.157 247.159);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.668 0.174 37.358);
  --destructive-foreground: oklch(0 0 0);
  --ring: oklch(0.85 0.143 187.552);
  --chart-1: oklch(0.85 0.143 187.552);
  --chart-2: oklch(0.827 0.21 151.677);
  --chart-3: oklch(0.656 0.157 247.159);
  --chart-4: oklch(0.833 0.201 152.646);
  --chart-5: oklch(0.859 0.145 187.427);
}