Ironclad for shadcn/ui

Ironclad is a shadcn/ui theme built around a vivid indigo primary color (#0e16aa) with muted light indigo accents (#e0e0e6). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid indigo primary (#0e16aa) on an indigo-tinted background (#040510).

Color palette

TokenLightDark
Background
#ffffffwhite
#040510black
Foreground
#060713black
#f8f8fbghostwhite
Card
#ffffffwhite
#040510black
Card foreground
#060713black
#f8f8fbghostwhite
Popover
#ffffffwhite
#040510black
Popover foreground
#060713black
#f8f8fbghostwhite
Primary
#0e16aadarkblue
#0e16aadarkblue
Primary foreground
#ecedfdlavender
#ecedfdlavender
Secondary
#e0e0e6gainsboro
#1d1d20black
Secondary foreground
#434351darkslategray
#b4b4bbsilver
Muted
#d5d6e7gainsboro
#18192ablack
Muted foreground
#3b3b45darkslategray
#babbc4silver
Accent
#e0e0e6gainsboro
#1d1d20black
Accent foreground
#434351darkslategray
#b4b4bbsilver
Destructive
#671604maroon
#e6320aorangered
Destructive foreground
#fbb2a2lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0e16aadarkblue
#0e16aadarkblue

Contrast

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

Light mode
Text on background20.04:1AAA
Text on card20.04:1AAA
Primary button10.59:1AAA
Secondary button7.41:1AAA
Muted text7.68:1AAA
Accent7.41:1AAA
Destructive7.07:1AAA
Dark mode
Text on background19.15:1AAA
Text on card19.15:1AAA
Primary button10.59:1AAA
Secondary button8.14:1AAA
Muted text9.06:1AAA
Accent8.14:1AAA
Destructive4.34: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.135 0.028 279.13);
  --muted: oklch(0.88 0.023 283.503);
  --muted-foreground: oklch(0.356 0.017 283.126);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.135 0.028 279.13);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.135 0.028 279.13);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.351 0.219 266.261);
  --primary-foreground: oklch(0.95 0.022 283.561);
  --secondary: oklch(0.909 0.007 283.834);
  --secondary-foreground: oklch(0.389 0.024 282.856);
  --accent: oklch(0.909 0.007 283.834);
  --accent-foreground: oklch(0.389 0.024 282.856);
  --destructive: oklch(0.339 0.117 33.838);
  --destructive-foreground: oklch(0.829 0.089 33.08);
  --ring: oklch(0.351 0.219 266.261);
  --chart-1: oklch(0.351 0.219 266.261);
  --chart-2: oklch(0.909 0.007 283.834);
  --chart-3: oklch(0.909 0.007 283.834);
  --chart-4: oklch(0.934 0.005 283.875);
  --chart-5: oklch(0.352 0.224 265.785);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.121 0.028 278.135);
  --foreground: oklch(0.981 0.004 283.901);
  --muted: oklch(0.222 0.033 281.018);
  --muted-foreground: oklch(0.794 0.014 283.671);
  --popover: oklch(0.121 0.028 278.135);
  --popover-foreground: oklch(0.981 0.004 283.901);
  --card: oklch(0.121 0.028 278.135);
  --card-foreground: oklch(0.981 0.004 283.901);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.351 0.219 266.261);
  --primary-foreground: oklch(0.95 0.022 283.561);
  --secondary: oklch(0.233 0.006 283.551);
  --secondary-foreground: oklch(0.773 0.01 283.755);
  --accent: oklch(0.233 0.006 283.551);
  --accent-foreground: oklch(0.773 0.01 283.755);
  --destructive: oklch(0.602 0.219 32.707);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.351 0.219 266.261);
  --chart-1: oklch(0.351 0.219 266.261);
  --chart-2: oklch(0.233 0.006 283.551);
  --chart-3: oklch(0.233 0.006 283.551);
  --chart-4: oklch(0.264 0.007 283.521);
  --chart-5: oklch(0.352 0.224 265.785);
}