Defenseless for shadcn/ui

Defenseless is a shadcn/ui theme built around a purple primary color (#693563) with green accents (#35693b). The light mode uses a neutral background (#fdf7fc). Dark mode keeps the purple primary (#693563) on a neutral background (#070306).

Color palette

TokenLightDark
Background
#fdf7fcsnow
#070306black
Foreground
#0c030bblack
#fdfcfdwhite
Card
#fdf7fcsnow
#070306black
Card foreground
#0c030bblack
#fdfcfdwhite
Popover
#fdf7fcsnow
#070306black
Popover foreground
#0c030bblack
#fdfcfdwhite
Primary
#693563dimgray
#693563dimgray
Primary foreground
#f0e0eelavender
#f0e0eelavender
Secondary
#35693bdarkslategray
#35693bdarkslategray
Secondary foreground
#ffffffwhite
#ffffffwhite
Muted
#d9dddagainsboro
#222622black
Muted foreground
#4f6952dimgray
#96b099darkseagreen
Accent
#35693bdarkslategray
#35693bdarkslategray
Accent foreground
#ffffffwhite
#ffffffwhite
Destructive
#a0260efirebrick
#ed4c2ctomato
Destructive foreground
#fde7e3mistyrose
#ffffffwhite
Border
#e5e7eblavender
#1f2937darkslategray
Input
#e5e7eblavender
#1f2937darkslategray
Ring
#693563dimgray
#693563dimgray

Contrast

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

Light mode
Text on background19.23:1AAA
Text on card19.23:1AAA
Primary button7.24:1AAA
Secondary button6.48:1AA
Muted text4.41:1AA Large
Accent6.48:1AA
Destructive6.39:1AA
Dark mode
Text on background19.98:1AAA
Text on card19.98:1AAA
Primary button7.24:1AAA
Secondary button6.48:1AA
Muted text6.56:1AA
Accent6.48:1AA
Destructive3.71:1AA Large

CSS variables

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

:root {
  --radius: 0.5rem;
  --background: oklch(0.982 0.009 329.239);
  --foreground: oklch(0.124 0.029 330.652);
  --muted: oklch(0.895 0.007 149.042);
  --muted-foreground: oklch(0.492 0.047 147.934);
  --popover: oklch(0.982 0.009 329.239);
  --popover-foreground: oklch(0.124 0.029 330.652);
  --card: oklch(0.982 0.009 329.239);
  --card-foreground: oklch(0.124 0.029 330.652);
  --border: oklch(0.928 0.006 264.531);
  --input: oklch(0.928 0.006 264.531);
  --primary: oklch(0.414 0.098 331.657);
  --primary-foreground: oklch(0.924 0.024 329.434);
  --secondary: oklch(0.472 0.092 146.446);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.472 0.092 146.446);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.464 0.161 32.825);
  --destructive-foreground: oklch(0.944 0.024 31.11);
  --ring: oklch(0.414 0.098 331.657);
  --chart-1: oklch(0.414 0.098 331.657);
  --chart-2: oklch(0.472 0.092 146.446);
  --chart-3: oklch(0.472 0.092 146.446);
  --chart-4: oklch(0.504 0.099 146.413);
  --chart-5: oklch(0.414 0.106 331.853);
}

.dark {
  --radius: 0.5rem;
  --background: oklch(0.111 0.013 329.818);
  --foreground: oklch(0.992 0.001 329.149);
  --muted: oklch(0.262 0.009 148.707);
  --muted-foreground: oklch(0.731 0.043 148.416);
  --popover: oklch(0.111 0.013 329.818);
  --popover-foreground: oklch(0.992 0.001 329.149);
  --card: oklch(0.111 0.013 329.818);
  --card-foreground: oklch(0.992 0.001 329.149);
  --border: oklch(0.278 0.03 256.848);
  --input: oklch(0.278 0.03 256.848);
  --primary: oklch(0.414 0.098 331.657);
  --primary-foreground: oklch(0.924 0.024 329.434);
  --secondary: oklch(0.472 0.092 146.446);
  --secondary-foreground: oklch(1 0 180);
  --accent: oklch(0.472 0.092 146.446);
  --accent-foreground: oklch(1 0 180);
  --destructive: oklch(0.638 0.202 33.172);
  --destructive-foreground: oklch(1 0 180);
  --ring: oklch(0.414 0.098 331.657);
  --chart-1: oklch(0.414 0.098 331.657);
  --chart-2: oklch(0.472 0.092 146.446);
  --chart-3: oklch(0.472 0.092 146.446);
  --chart-4: oklch(0.504 0.099 146.413);
  --chart-5: oklch(0.414 0.106 331.853);
}