Damaged is a shadcn/ui theme built around a vivid deep violet primary color (#3f0963) with muted light violet accents (#e6e2e9). The light mode uses a neutral background (#fdfbfe). Dark mode keeps the vivid deep violet primary (#3f0963) on a violet-tinted background (#08050a).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfbfewhite | #08050ablack |
| Foreground | #030104black | #faf8fcghostwhite |
| Card | #faf8fcghostwhite | #0b070eblack |
| Card foreground | #000000black | #fdfbfdsnow |
| Popover | #fdfbfewhite | #08050ablack |
| Popover foreground | #030104black | #faf8fcghostwhite |
| Primary | #3f0963indigo | #3f0963indigo |
| Primary foreground | #d7a6f7plum | #d7a6f7plum |
| Secondary | #e6e2e9gainsboro | #1d191fblack |
| Secondary foreground | #4e4356darkslategray | #b7acbesilver |
| Muted | #f1eaf5whitesmoke | #100a15black |
| Muted foreground | #4b474ddarkslategray | #b6b2b8silver |
| Accent | #e6e2e9gainsboro | #1d191fblack |
| Accent foreground | #4e4356darkslategray | #b7acbesilver |
| Destructive | #bc2d10firebrick | #eb3c19orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #3f0963indigo | #3f0963indigo |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.22:1 | AAA |
| Text on card | 19.85:1 | AAA |
| Primary button | 7.50:1 | AAA |
| Secondary button | 7.28:1 | AAA |
| Muted text | 7.72:1 | AAA |
| Accent | 7.28:1 | AAA |
| Destructive | 5.98:1 | AA |
| Text on background | 19.19:1 | AAA |
| Text on card | 19.43:1 | AAA |
| Primary button | 7.50:1 | AAA |
| Secondary button | 7.99:1 | AAA |
| Muted text | 9.34:1 | AAA |
| Accent | 7.99:1 | AAA |
| Destructive | 4.04:1 | AA Large |
Paste this into your globals.css to use Damaged in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.991 0.003 312.332);
--foreground: oklch(0.083 0.016 314.016);
--muted: oklch(0.946 0.017 312.227);
--muted-foreground: oklch(0.403 0.011 312.159);
--popover: oklch(0.991 0.003 312.332);
--popover-foreground: oklch(0.083 0.016 314.016);
--card: oklch(0.981 0.007 312.305);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.295 0.141 305.81);
--primary-foreground: oklch(0.798 0.123 311.184);
--secondary: oklch(0.919 0.009 312.284);
--secondary-foreground: oklch(0.402 0.033 311.743);
--accent: oklch(0.919 0.009 312.284);
--accent-foreground: oklch(0.402 0.033 311.743);
--destructive: oklch(0.522 0.183 32.74);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.295 0.141 305.81);
--chart-1: oklch(0.295 0.141 305.81);
--chart-2: oklch(0.919 0.009 312.284);
--chart-3: oklch(0.919 0.009 312.284);
--chart-4: oklch(0.943 0.006 312.308);
--chart-5: oklch(0.296 0.144 305.459);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.124 0.016 313.444);
--foreground: oklch(0.982 0.006 312.315);
--muted: oklch(0.158 0.026 311.125);
--muted-foreground: oklch(0.769 0.009 312.269);
--popover: oklch(0.124 0.016 313.444);
--popover-foreground: oklch(0.982 0.006 312.315);
--card: oklch(0.137 0.018 312.295);
--card-foreground: oklch(0.991 0.003 312.337);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.295 0.141 305.81);
--primary-foreground: oklch(0.798 0.123 311.184);
--secondary: oklch(0.22 0.014 311.877);
--secondary-foreground: oklch(0.759 0.028 312.088);
--accent: oklch(0.22 0.014 311.877);
--accent-foreground: oklch(0.759 0.028 312.088);
--destructive: oklch(0.619 0.216 32.796);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.295 0.141 305.81);
--chart-1: oklch(0.295 0.141 305.81);
--chart-2: oklch(0.22 0.014 311.877);
--chart-3: oklch(0.22 0.014 311.877);
--chart-4: oklch(0.251 0.018 311.839);
--chart-5: oklch(0.296 0.144 305.459);
}