Ironclad for shadcn/ui

Ironclad is a shadcn/ui theme built around a vivid deep yellow primary color (#707401) with vivid deep purple accents (#740170). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep yellow primary (#707401) on a neutral background (#040401).

Color palette

TokenLightDark
Background
#ffffffwhite
#040401black
Foreground
#080802black
#fbfbf9snow
Card
#ffffffwhite
#040401black
Card foreground
#080802black
#fbfbf9snow
Popover
#ffffffwhite
#040401black
Popover foreground
#080802black
#fbfbf9snow
Primary
#707401olive
#707401olive
Primary foreground
#ffffffwhite
#ffffffwhite
Secondary
#017074teal
#017074teal
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#e4f1f1lavender
#0e1a1bblack
Muted foreground
#4e5f5fdimgray
#a0b0b1darkgray
Accent
#740170purple
#740170purple
Accent foreground
#fea9fbviolet
#fea9fbviolet
Destructive
#6f1301maroon
#fd411corangered
Destructive foreground
#feb3a4lightpink
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#707401olive
#707401olive

Contrast

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

Light mode
Text on background20.07:1AAA
Text on card20.07:1AAA
Primary button5.00:1AA
Secondary button5.85:1AA
Muted text5.79:1AA
Accent6.18:1AA
Destructive6.87:1AA
Dark mode
Text on background19.82:1AAA
Text on card19.82:1AAA
Primary button5.00:1AA
Secondary button5.85:1AA
Muted text7.87:1AAA
Accent6.18:1AA
Destructive3.53: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.133 0.02 110.072);
  --muted: oklch(0.948 0.013 199.415);
  --muted-foreground: oklch(0.471 0.021 199.052);
  --popover: oklch(1 0 180);
  --popover-foreground: oklch(0.133 0.02 110.072);
  --card: oklch(1 0 180);
  --card-foreground: oklch(0.133 0.02 110.072);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.538 0.119 112.053);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.496 0.084 198.96);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.39 0.177 330.072);
  --accent-foreground: oklch(0.844 0.143 327.9);
  --destructive: oklch(0.353 0.128 33.187);
  --destructive-foreground: oklch(0.834 0.091 31.651);
  --ring: oklch(0.538 0.119 112.053);
  --chart-1: oklch(0.538 0.119 112.053);
  --chart-2: oklch(0.496 0.084 198.96);
  --chart-3: oklch(0.39 0.177 330.072);
  --chart-4: oklch(0.542 0.092 199.012);
  --chart-5: oklch(0.544 0.121 112.094);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.103 0.014 109.814);
  --foreground: oklch(0.987 0.003 107.987);
  --muted: oklch(0.208 0.018 198.628);
  --muted-foreground: oklch(0.746 0.019 199.275);
  --popover: oklch(0.103 0.014 109.814);
  --popover-foreground: oklch(0.987 0.003 107.987);
  --card: oklch(0.103 0.014 109.814);
  --card-foreground: oklch(0.987 0.003 107.987);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.538 0.119 112.053);
  --primary-foreground: oklch(1 0 180);
  --secondary: oklch(0.496 0.084 198.96);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.39 0.177 330.072);
  --accent-foreground: oklch(0.844 0.143 327.9);
  --destructive: oklch(0.654 0.228 32.794);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.538 0.119 112.053);
  --chart-1: oklch(0.538 0.119 112.053);
  --chart-2: oklch(0.496 0.084 198.96);
  --chart-3: oklch(0.39 0.177 330.072);
  --chart-4: oklch(0.542 0.092 199.012);
  --chart-5: oklch(0.544 0.121 112.094);
}