Harmful is a shadcn/ui theme built around a muted orange primary color (#bea893) with muted yellow accents (#bebd93). The light mode uses a neutral background (#fefcfb). Dark mode keeps the muted orange primary (#bea893) on a neutral background (#040302).
| Token | Light | Dark |
|---|---|---|
| Background | #fefcfbsnow | #040302black |
| Foreground | #090501black | #fdfcfcsnow |
| Card | #fcfaf7snow | #070503black |
| Card foreground | #040201black | #ffffffwhite |
| Popover | #fefcfbsnow | #040302black |
| Popover foreground | #090501black | #fdfcfcsnow |
| Primary | #bea893tan | #bea893tan |
| Primary foreground | #130f0bblack | #130f0bblack |
| Secondary | #be9393rosybrown | #be9393rosybrown |
| Secondary foreground | #130b0cblack | #130b0cblack |
| Muted | #e7cbcblightgrey | #341819black |
| Muted foreground | #4e4646darkslategray | #b9b1b1darkgray |
| Accent | #bebd93tan | #bebd93tan |
| Accent foreground | #13130bblack | #13130bblack |
| Destructive | #671c09maroon | #ed5a35tomato |
| Destructive foreground | #f8baablightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #bea893tan | #bea893tan |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.90:1 | AAA |
| Text on card | 19.86:1 | AAA |
| Primary button | 8.33:1 | AAA |
| Secondary button | 7.18:1 | AAA |
| Muted text | 6.01:1 | AA |
| Accent | 9.69:1 | AAA |
| Destructive | 7.21:1 | AAA |
| Text on background | 20.18:1 | AAA |
| Text on card | 20.34:1 | AAA |
| Primary button | 8.33:1 | AAA |
| Secondary button | 7.18:1 | AAA |
| Muted text | 7.72:1 | AAA |
| Accent | 9.69:1 | AAA |
| Destructive | 6.13:1 | AA |
Paste this into your globals.css to use Harmful in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.993 0.002 65.941);
--foreground: oklch(0.119 0.017 76.761);
--muted: oklch(0.865 0.032 16.641);
--muted-foreground: oklch(0.403 0.01 16.419);
--popover: oklch(0.993 0.002 65.941);
--popover-foreground: oklch(0.119 0.017 76.761);
--card: oklch(0.986 0.004 65.916);
--card-foreground: oklch(0.095 0.014 76.761);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.744 0.039 65.271);
--primary-foreground: oklch(0.173 0.01 65.193);
--secondary: oklch(0.703 0.052 17.368);
--secondary-foreground: oklch(0.162 0.013 17.527);
--accent: oklch(0.789 0.058 106.841);
--accent-foreground: oklch(0.184 0.015 106.936);
--destructive: oklch(0.347 0.111 34.642);
--destructive-foreground: oklch(0.841 0.075 34.474);
--ring: oklch(0.744 0.039 65.271);
--chart-1: oklch(0.744 0.039 65.271);
--chart-2: oklch(0.703 0.052 17.368);
--chart-3: oklch(0.789 0.058 106.841);
--chart-4: oklch(0.73 0.047 17.171);
--chart-5: oklch(0.746 0.044 65.174);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.093 0.007 71.397);
--foreground: oklch(0.993 0.002 65.947);
--muted: oklch(0.25 0.045 19.782);
--muted-foreground: oklch(0.768 0.008 16.169);
--popover: oklch(0.093 0.007 71.397);
--popover-foreground: oklch(0.993 0.002 65.947);
--card: oklch(0.118 0.009 71.397);
--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.744 0.039 65.271);
--primary-foreground: oklch(0.173 0.01 65.193);
--secondary: oklch(0.703 0.052 17.368);
--secondary-foreground: oklch(0.162 0.013 17.527);
--accent: oklch(0.789 0.058 106.841);
--accent-foreground: oklch(0.184 0.015 106.936);
--destructive: oklch(0.656 0.189 35.076);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.744 0.039 65.271);
--chart-1: oklch(0.744 0.039 65.271);
--chart-2: oklch(0.703 0.052 17.368);
--chart-3: oklch(0.789 0.058 106.841);
--chart-4: oklch(0.73 0.047 17.171);
--chart-5: oklch(0.746 0.044 65.174);
}