Ironclad for shadcn/ui

Ironclad is a shadcn/ui theme built around a vivid blue primary color (#0c81ca) with vivid orange accents (#ca550c). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid blue primary (#0c81ca) on a neutral background (#010304).

Color palette

TokenLightDark
Background
#ffffffwhite
#010304black
Foreground
#020608black
#fcfdfdwhite
Card
#ffffffwhite
#010304black
Card foreground
#020608black
#fcfdfdwhite
Popover
#ffffffwhite
#010304black
Popover foreground
#020608black
#fcfdfdwhite
Primary
#0c81cadodgerblue
#0c81cadodgerblue
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#ca550cchocolate
#ca550cchocolate
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#dfd7d2gainsboro
#2d2520darkslategray
Muted foreground
#4d4c4cdarkslategray
#b3b2b2darkgray
Accent
#ca550cchocolate
#ca550cchocolate
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#b21f06firebrick
#f8492atomato
Destructive foreground
#feeeeblinen
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#0c81cadodgerblue
#0c81cadodgerblue

Contrast

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

Light mode
Text on background20.34:1AAA
Text on card20.34:1AAA
Primary button4.17:1AA Large
Secondary button4.35:1AA Large
Muted text6.04:1AA
Accent4.35:1AA Large
Destructive6.01:1AA
Dark mode
Text on background20.28:1AAA
Text on card20.28:1AAA
Primary button4.17:1AA Large
Secondary button4.35:1AA Large
Muted text7.13:1AAA
Accent4.35:1AA Large
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.115 0.013 227.279);
  --muted: oklch(0.885 0.011 54.332);
  --muted-foreground: oklch(0.418 0.002 54.454);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.115 0.013 227.279);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.115 0.013 227.279);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.584 0.144 245.114);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.593 0.166 44.712);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.593 0.166 44.712);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.493 0.184 31.763);
  --destructive-foreground: oklch(0.961 0.018 29.541);
  --ring: oklch(0.584 0.144 245.114);
  --chart-1: oklch(0.584 0.144 245.114);
  --chart-2: oklch(0.593 0.166 44.712);
  --chart-3: oklch(0.593 0.166 44.712);
  --chart-4: oklch(0.623 0.175 44.572);
  --chart-5: oklch(0.588 0.148 245.631);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.092 0.01 227.608);
  --foreground: oklch(0.992 0.001 234.523);
  --muted: oklch(0.271 0.015 53.756);
  --muted-foreground: oklch(0.765 0.001 54.482);
  --popover: oklch(0.092 0.01 227.608);
  --popover-foreground: oklch(0.992 0.001 234.523);
  --card: oklch(0.092 0.01 227.608);
  --card-foreground: oklch(0.992 0.001 234.523);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.584 0.144 245.114);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.593 0.166 44.712);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.593 0.166 44.712);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.655 0.216 32.369);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.584 0.144 245.114);
  --chart-1: oklch(0.584 0.144 245.114);
  --chart-2: oklch(0.593 0.166 44.712);
  --chart-3: oklch(0.593 0.166 44.712);
  --chart-4: oklch(0.623 0.175 44.572);
  --chart-5: oklch(0.588 0.148 245.631);
}