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).
| Token | Light | Dark |
|---|---|---|
| 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 |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.23:1 | AAA |
| Text on card | 19.23:1 | AAA |
| Primary button | 7.24:1 | AAA |
| Secondary button | 6.48:1 | AA |
| Muted text | 4.41:1 | AA Large |
| Accent | 6.48:1 | AA |
| Destructive | 6.39:1 | AA |
| Text on background | 19.98:1 | AAA |
| Text on card | 19.98:1 | AAA |
| Primary button | 7.24:1 | AAA |
| Secondary button | 6.48:1 | AA |
| Muted text | 6.56:1 | AA |
| Accent | 6.48:1 | AA |
| Destructive | 3.71:1 | AA Large |
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);
}