Damaged is a shadcn/ui theme built around a light green primary color (#dcf4dd) with muted green accents (#b8c7b8). The light mode uses a neutral background (#f7fdf7). Dark mode keeps the light green primary (#dcf4dd) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fdf7mintcream | #000000black |
| Foreground | #041005black | #fcfdfcwhite |
| Card | #f3fcf3honeydew | #030303black |
| Card foreground | #030c04black | #ffffffwhite |
| Popover | #f3fcf3honeydew | #030303black |
| Popover foreground | #030c04black | #ffffffwhite |
| Primary | #dcf4ddgainsboro | #dcf4ddgainsboro |
| Primary foreground | #0d2b0eblack | #0d2b0eblack |
| Secondary | #d4d9d4lightgrey | #313532darkslategray |
| Secondary foreground | #3a413adarkslategray | #cacecblightgrey |
| Muted | #d6e6d6gainsboro | #19291ablack |
| Muted foreground | #577057dimgray | #8fa88fdarkseagreen |
| Accent | #b8c7b8silver | #3a4a3bdarkslategray |
| Accent foreground | #222b22darkslategray | #d7e0d7gainsboro |
| Destructive | #7c2d09saddlebrown | #ef5a15orangered |
| Destructive foreground | #fad0bcpeachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #dcf4ddgainsboro | #dcf4ddgainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.80:1 | AAA |
| Text on card | 18.91:1 | AAA |
| Primary button | 13.16:1 | AAA |
| Secondary button | 7.32:1 | AAA |
| Muted text | 4.17:1 | AA Large |
| Accent | 8.27:1 | AAA |
| Destructive | 6.61:1 | AA |
| Text on background | 20.59:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 13.16:1 | AAA |
| Secondary button | 7.86:1 | AAA |
| Muted text | 5.93:1 | AA |
| Accent | 6.96:1 | AA |
| Destructive | 3.41:1 | AA Large |
Paste this into your globals.css to use Damaged in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.01 146.452);
--foreground: oklch(0.157 0.031 144.867);
--muted: oklch(0.908 0.027 146.281);
--muted-foreground: oklch(0.518 0.049 145.668);
--popover: oklch(0.982 0.015 146.406);
--popover-foreground: oklch(0.14 0.027 144.998);
--card: oklch(0.982 0.015 146.406);
--card-foreground: oklch(0.14 0.027 144.998);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.943 0.04 146.167);
--primary-foreground: oklch(0.257 0.061 144.116);
--secondary: oklch(0.879 0.008 146.459);
--secondary-foreground: oklch(0.366 0.015 146.165);
--accent: oklch(0.813 0.026 146.254);
--accent-foreground: oklch(0.276 0.021 145.866);
--destructive: oklch(0.408 0.118 41.083);
--destructive-foreground: oklch(0.889 0.055 46.258);
--ring: oklch(0.943 0.04 146.167);
--chart-1: oklch(0.943 0.04 146.167);
--chart-2: oklch(0.879 0.008 146.459);
--chart-3: oklch(0.813 0.026 146.254);
--chart-4: oklch(0.902 0.007 146.476);
--chart-5: oklch(0.944 0.042 146.146);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.993 0.003 146.519);
--muted: oklch(0.262 0.036 145.263);
--muted-foreground: oklch(0.706 0.046 145.954);
--popover: oklch(0.092 0 180);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.943 0.04 146.167);
--primary-foreground: oklch(0.257 0.061 144.116);
--secondary: oklch(0.323 0.007 146.36);
--secondary-foreground: oklch(0.847 0.005 146.487);
--accent: oklch(0.391 0.033 145.78);
--accent-foreground: oklch(0.897 0.014 146.4);
--destructive: oklch(0.657 0.196 40.429);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.943 0.04 146.167);
--chart-1: oklch(0.943 0.04 146.167);
--chart-2: oklch(0.323 0.007 146.36);
--chart-3: oklch(0.391 0.033 145.78);
--chart-4: oklch(0.353 0.007 146.355);
--chart-5: oklch(0.944 0.042 146.146);
}