Howitzer for shadcn/ui

Howitzer is a shadcn/ui theme built around a muted light green primary color (#ecf4ee) with muted light teal accents (#ecf4f2). The light mode uses a neutral background (#f8fbf9). Dark mode keeps the muted light green primary (#ecf4ee) on a green-tinted background (#070d09).

Color palette

TokenLightDark
Background
#f8fbf9mintcream
#070d09black
Foreground
#010402black
#ffffffwhite
Card
#f8fbf9mintcream
#070d09black
Card foreground
#010402black
#ffffffwhite
Popover
#f8fbf9mintcream
#070d09black
Popover foreground
#010402black
#ffffffwhite
Primary
#ecf4eewhitesmoke
#ecf4eewhitesmoke
Primary foreground
#1a2d20black
#1a2d20black
Secondary
#edf4ecwhitesmoke
#edf4ecwhitesmoke
Secondary foreground
#1e2d1ablack
#1e2d1ablack
Muted
#dbe9d8gainsboro
#192716black
Muted foreground
#586156dimgray
#a0a99edarkgray
Accent
#ecf4f2whitesmoke
#ecf4f2whitesmoke
Accent foreground
#1a2d2adarkslategray
#1a2d2adarkslategray
Destructive
#6d2809saddlebrown
#d44f11chocolate
Destructive foreground
#f8c6afpeachpuff
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#ecf4eewhitesmoke
#ecf4eewhitesmoke

Contrast

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

Light mode
Text on background19.84:1AAA
Text on card19.84:1AAA
Primary button12.98:1AAA
Secondary button12.94:1AAA
Muted text5.10:1AA
Accent12.90:1AAA
Destructive6.99:1AA
Dark mode
Text on background19.58:1AAA
Text on card19.58:1AAA
Primary button12.98:1AAA
Secondary button12.94:1AAA
Muted text6.43:1AA
Accent12.90:1AAA
Destructive4.25:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.987 0.004 156.472);
  --foreground: oklch(0.098 0.017 156.091);
  --muted: oklch(0.919 0.027 139.964);
  --muted-foreground: oklch(0.482 0.021 139.953);
  --popover: oklch(0.987 0.004 156.472);
  --popover-foreground: oklch(0.098 0.017 156.091);
  --card: oklch(0.987 0.004 156.472);
  --card-foreground: oklch(0.098 0.017 156.091);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.959 0.011 156.331);
  --primary-foreground: oklch(0.277 0.034 153.825);
  --secondary: oklch(0.959 0.013 139.979);
  --secondary-foreground: oklch(0.277 0.039 139.909);
  --accent: oklch(0.96 0.009 184.07);
  --accent-foreground: oklch(0.28 0.025 181.609);
  --destructive: oklch(0.374 0.105 41.622);
  --destructive-foreground: oklch(0.865 0.066 46.14);
  --ring: oklch(0.959 0.011 156.331);
  --chart-1: oklch(0.959 0.011 156.331);
  --chart-2: oklch(0.959 0.013 139.979);
  --chart-3: oklch(0.96 0.009 184.07);
  --chart-4: oklch(0.98 0.006 139.985);
  --chart-5: oklch(0.959 0.012 156.305);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.152 0.014 155.638);
  --foreground: oklch(1 0 180);
  --muted: oklch(0.255 0.037 139.91);
  --muted-foreground: oklch(0.723 0.019 139.968);
  --popover: oklch(0.152 0.014 155.638);
  --popover-foreground: oklch(1 0 180);
  --card: oklch(0.152 0.014 155.638);
  --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.959 0.011 156.331);
  --primary-foreground: oklch(0.277 0.034 153.825);
  --secondary: oklch(0.959 0.013 139.979);
  --secondary-foreground: oklch(0.277 0.039 139.909);
  --accent: oklch(0.96 0.009 184.07);
  --accent-foreground: oklch(0.28 0.025 181.609);
  --destructive: oklch(0.601 0.18 40.376);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.959 0.011 156.331);
  --chart-1: oklch(0.959 0.011 156.331);
  --chart-2: oklch(0.959 0.013 139.979);
  --chart-3: oklch(0.96 0.009 184.07);
  --chart-4: oklch(0.98 0.006 139.985);
  --chart-5: oklch(0.959 0.012 156.305);
}