Damage is a shadcn/ui theme built around a vivid yellow primary color (#f8b72a) with vivid blue accents (#2a6cf8). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid yellow primary (#f8b72a) on a neutral background (#070604).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #070604black |
| Foreground | #0d0903black | #faf8f4whitesmoke |
| Card | #fcfcfcsnow | #0a0805black |
| Card foreground | #080602black | #fcfbf8snow |
| Popover | #fcfcfcsnow | #0a0805black |
| Popover foreground | #080602black | #fcfbf8snow |
| Primary | #f8b72agoldenrod | #f8b72agoldenrod |
| Primary foreground | #000000black | #000000black |
| Secondary | #2a6cf8royalblue | #2a6cf8royalblue |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #dee1e8gainsboro | #171a21black |
| Muted foreground | #56585ddimgray | #a2a4a9darkgray |
| Accent | #2a6cf8royalblue | #2a6cf8royalblue |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #9f1609darkred | #f23726orangered |
| Destructive foreground | #fde0ddmistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f8b72agoldenrod | #f8b72agoldenrod |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.85:1 | AAA |
| Text on card | 19.81:1 | AAA |
| Primary button | 11.82:1 | AAA |
| Secondary button | 4.57:1 | AA |
| Muted text | 5.44:1 | AA |
| Accent | 4.57:1 | AA |
| Destructive | 6.51:1 | AA |
| Text on background | 19.13:1 | AAA |
| Text on card | 19.28:1 | AAA |
| Primary button | 11.82:1 | AAA |
| Secondary button | 4.57:1 | AA |
| Muted text | 6.96:1 | AA |
| Accent | 4.57:1 | AA |
| Destructive | 3.91: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.143 0.019 91.637);
--muted: oklch(0.91 0.009 265.958);
--muted-foreground: oklch(0.46 0.008 265.916);
--popover: oklch(0.992 0 161.565);
--popover-foreground: oklch(0.125 0.016 92.505);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.125 0.016 92.505);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.82 0.159 80.751);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.575 0.221 262.775);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.575 0.221 262.775);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.451 0.172 30.094);
--destructive-foreground: oklch(0.93 0.032 23.954);
--ring: oklch(0.82 0.159 80.751);
--chart-1: oklch(0.82 0.159 80.751);
--chart-2: oklch(0.575 0.221 262.775);
--chart-3: oklch(0.575 0.221 262.775);
--chart-4: oklch(0.6 0.206 262.979);
--chart-5: oklch(0.825 0.162 80.362);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.12 0.008 89.28);
--foreground: oklch(0.981 0.006 86.03);
--muted: oklch(0.219 0.014 265.613);
--muted-foreground: oklch(0.72 0.007 265.958);
--popover: oklch(0.138 0.009 89.28);
--popover-foreground: oklch(0.987 0.004 86.022);
--card: oklch(0.138 0.009 89.28);
--card-foreground: oklch(0.987 0.004 86.022);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.82 0.159 80.751);
--primary-foreground: oklch(0 0 0);
--secondary: oklch(0.575 0.221 262.775);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.575 0.221 262.775);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.629 0.224 29.86);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.82 0.159 80.751);
--chart-1: oklch(0.82 0.159 80.751);
--chart-2: oklch(0.575 0.221 262.775);
--chart-3: oklch(0.575 0.221 262.775);
--chart-4: oklch(0.6 0.206 262.979);
--chart-5: oklch(0.825 0.162 80.362);
}