Damage is a shadcn/ui theme built around a deep yellow primary color (#161403) with muted light yellow accents (#d6d4c7). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep yellow primary (#161403) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #090801black | #fdfdfcwhite |
| Card | #fcfcfcsnow | #030303black |
| Card foreground | #040401black | #ffffffwhite |
| Popover | #fcfcfcsnow | #030303black |
| Popover foreground | #040401black | #ffffffwhite |
| Primary | #161403black | #161403black |
| Primary foreground | #c7b61fgoldenrod | #c7b61fgoldenrod |
| Secondary | #dfded8gainsboro | #1f1e1ablack |
| Secondary foreground | #48473cdarkslategray | #bcbaaesilver |
| Muted | #f0efealinen | #15140fblack |
| Muted foreground | #62615bdimgray | #a4a49ddarkgray |
| Accent | #d6d4c7lightgrey | #323124darkslategray |
| Accent foreground | #3e3c2edarkslategray | #ceccbbsilver |
| Destructive | #bc3b10firebrick | #ec5522chocolate |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #161403black | #161403black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.06:1 | AAA |
| Text on card | 20.08:1 | AAA |
| Primary button | 8.91:1 | AAA |
| Secondary button | 6.93:1 | AA |
| Muted text | 5.41:1 | AA |
| Accent | 7.47:1 | AAA |
| Destructive | 5.57:1 | AA |
| Text on background | 20.63:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 8.91:1 | AAA |
| Secondary button | 8.56:1 | AAA |
| Muted text | 7.35:1 | AAA |
| Accent | 8.10:1 | AAA |
| Destructive | 3.57:1 | AA Large |
Paste this into your globals.css to use Damage in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.133 0.022 105.284);
--muted: oklch(0.952 0.007 101.401);
--muted-foreground: oklch(0.492 0.011 101.622);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.106 0.018 105.284);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.106 0.018 105.284);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.189 0.032 103.671);
--primary-foreground: oklch(0.766 0.154 102.381);
--secondary: oklch(0.899 0.008 101.425);
--secondary-foreground: oklch(0.396 0.018 101.952);
--accent: oklch(0.869 0.018 101.605);
--accent-foreground: oklch(0.353 0.024 102.264);
--destructive: oklch(0.536 0.172 36.613);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.189 0.032 103.671);
--chart-1: oklch(0.189 0.032 103.671);
--chart-2: oklch(0.899 0.008 101.425);
--chart-3: oklch(0.869 0.018 101.605);
--chart-4: oklch(0.921 0.006 101.392);
--chart-5: oklch(0.191 0.033 103.738);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.994 0.002 101.319);
--muted: oklch(0.191 0.01 102.066);
--muted-foreground: oklch(0.716 0.01 101.5);
--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.189 0.032 103.671);
--primary-foreground: oklch(0.766 0.154 102.381);
--secondary: oklch(0.234 0.009 101.839);
--secondary-foreground: oklch(0.788 0.017 101.616);
--accent: oklch(0.31 0.021 102.276);
--accent-foreground: oklch(0.842 0.023 101.709);
--destructive: oklch(0.646 0.196 37.357);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.189 0.032 103.671);
--chart-1: oklch(0.189 0.032 103.671);
--chart-2: oklch(0.234 0.009 101.839);
--chart-3: oklch(0.31 0.021 102.276);
--chart-4: oklch(0.268 0.01 101.876);
--chart-5: oklch(0.191 0.033 103.738);
}