Ironclad for shadcn/ui

Ironclad is a shadcn/ui theme built around a near-black primary color (#232423) with near-black accents (#242324). The light mode uses a neutral background (#ffffff). Dark mode keeps the near-black primary (#232423) on a green-tinted background (#060a05).

Color palette

TokenLightDark
Background
#ffffffwhite
#060a05black
Foreground
#000000black
#f9fbf9mintcream
Card
#ffffffwhite
#060a05black
Card foreground
#000000black
#f9fbf9mintcream
Popover
#ffffffwhite
#060a05black
Popover foreground
#000000black
#f9fbf9mintcream
Primary
#232423black
#232423black
Primary foreground
#bcbebbsilver
#bcbebbsilver
Secondary
#242324black
#242324black
Secondary foreground
#bebbbesilver
#bebbbesilver
Muted
#dfd1e1gainsboro
#2c1e2edarkslategray
Muted foreground
#473c49darkslategray
#c2b6c3silver
Accent
#242324black
#242324black
Accent foreground
#bebbbesilver
#bebbbesilver
Destructive
#a83610firebrick
#eb5928chocolate
Destructive foreground
#ffffffwhite
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#232423black
#232423black

Contrast

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

Light mode
Text on background21.00:1AAA
Text on card21.00:1AAA
Primary button8.28:1AAA
Secondary button8.22:1AAA
Muted text7.11:1AAA
Accent8.22:1AAA
Destructive6.57:1AA
Dark mode
Text on background19.15:1AAA
Text on card19.15:1AAA
Primary button8.28:1AAA
Secondary button8.22:1AAA
Muted text8.05:1AAA
Accent8.22:1AAA
Destructive3.50:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(1 0 180);
  --foreground: oklch(0 0 0);
  --muted: oklch(0.876 0.027 322.216);
  --muted-foreground: oklch(0.372 0.027 322.354);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0 0 0);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0 0 0);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.26 0.003 142.071);
  --primary-foreground: oklch(0.799 0.004 142.094);
  --secondary: oklch(0.258 0.003 322.155);
  --secondary-foreground: oklch(0.796 0.005 322.132);
  --accent: oklch(0.258 0.003 322.155);
  --accent-foreground: oklch(0.796 0.005 322.132);
  --destructive: oklch(0.496 0.157 36.841);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.26 0.003 142.071);
  --chart-1: oklch(0.26 0.003 142.071);
  --chart-2: oklch(0.258 0.003 322.155);
  --chart-3: oklch(0.258 0.003 322.155);
  --chart-4: oklch(0.289 0.004 322.157);
  --chart-5: oklch(0.262 0.008 142.008);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.138 0.016 141.035);
  --foreground: oklch(0.986 0.004 142.099);
  --muted: oklch(0.26 0.036 322.542);
  --muted-foreground: oklch(0.79 0.023 322.209);
  --popover: oklch(0.138 0.016 141.035);
  --popover-foreground: oklch(0.986 0.004 142.099);
  --card: oklch(0.138 0.016 141.035);
  --card-foreground: oklch(0.986 0.004 142.099);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.26 0.003 142.071);
  --primary-foreground: oklch(0.799 0.004 142.094);
  --secondary: oklch(0.258 0.003 322.155);
  --secondary-foreground: oklch(0.796 0.005 322.132);
  --accent: oklch(0.258 0.003 322.155);
  --accent-foreground: oklch(0.796 0.005 322.132);
  --destructive: oklch(0.65 0.19 37.696);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.26 0.003 142.071);
  --chart-1: oklch(0.26 0.003 142.071);
  --chart-2: oklch(0.258 0.003 322.155);
  --chart-3: oklch(0.258 0.003 322.155);
  --chart-4: oklch(0.289 0.004 322.157);
  --chart-5: oklch(0.262 0.008 142.008);
}