Harmful is a shadcn/ui theme built around a light purple primary color (#e8c1f5) with light green accents (#cef5c1). The light mode uses a neutral background (#ffffff). Dark mode keeps the light purple primary (#e8c1f5) on a neutral background (#060308).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #060308black |
| Foreground | #070208black | #f8f7f8whitesmoke |
| Card | #fcfcfcsnow | #0a040bblack |
| Card foreground | #030104black | #faf9fasnow |
| Popover | #ffffffwhite | #060308black |
| Popover foreground | #070208black | #f8f7f8whitesmoke |
| Primary | #e8c1f5thistle | #e8c1f5thistle |
| Primary foreground | #5a1273indigo | #5a1273indigo |
| Secondary | #cef5c1lightgrey | #cef5c1lightgrey |
| Secondary foreground | #0a1a04black | #0a1a04black |
| Muted | #eef2edwhitesmoke | #0e120dblack |
| Muted foreground | #575e55dimgray | #a4aaa1darkgray |
| Accent | #cef5c1lightgrey | #cef5c1lightgrey |
| Accent foreground | #0a1a04black | #0a1a04black |
| Destructive | #94380asaddlebrown | #f06b28chocolate |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #e8c1f5thistle | #e8c1f5thistle |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.56:1 | AAA |
| Text on card | 20.34:1 | AAA |
| Primary button | 7.58:1 | AAA |
| Secondary button | 15.06:1 | AAA |
| Muted text | 5.93:1 | AA |
| Accent | 15.06:1 | AAA |
| Destructive | 7.42:1 | AAA |
| Text on background | 19.21:1 | AAA |
| Text on card | 19.33:1 | AAA |
| Primary button | 7.58:1 | AAA |
| Secondary button | 15.06:1 | AAA |
| Muted text | 7.96:1 | AAA |
| Accent | 15.06:1 | AAA |
| Destructive | 6.84:1 | AA |
Paste this into your globals.css to use Harmful in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.104 0.026 319.912);
--muted: oklch(0.958 0.008 137.777);
--muted-foreground: oklch(0.472 0.016 137.823);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.104 0.026 319.912);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0.083 0.021 319.912);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.862 0.082 317.604);
--primary-foreground: oklch(0.359 0.157 315.564);
--secondary: oklch(0.93 0.08 137.929);
--secondary-foreground: oklch(0.198 0.048 137.643);
--accent: oklch(0.93 0.08 137.929);
--accent-foreground: oklch(0.198 0.048 137.643);
--destructive: oklch(0.464 0.134 41.883);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.862 0.082 317.604);
--chart-1: oklch(0.862 0.082 317.604);
--chart-2: oklch(0.93 0.08 137.929);
--chart-3: oklch(0.93 0.08 137.929);
--chart-4: oklch(0.945 0.063 137.886);
--chart-5: oklch(0.861 0.086 317.596);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.107 0.021 319.461);
--foreground: oklch(0.976 0.003 317.759);
--muted: oklch(0.175 0.012 137.891);
--muted-foreground: oklch(0.731 0.015 137.797);
--popover: oklch(0.107 0.021 319.461);
--popover-foreground: oklch(0.976 0.003 317.759);
--card: oklch(0.122 0.024 319.272);
--card-foreground: oklch(0.984 0.002 317.76);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.862 0.082 317.604);
--primary-foreground: oklch(0.359 0.157 315.564);
--secondary: oklch(0.93 0.08 137.929);
--secondary-foreground: oklch(0.198 0.048 137.643);
--accent: oklch(0.93 0.08 137.929);
--accent-foreground: oklch(0.198 0.048 137.643);
--destructive: oklch(0.681 0.181 43.507);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.862 0.082 317.604);
--chart-1: oklch(0.862 0.082 317.604);
--chart-2: oklch(0.93 0.08 137.929);
--chart-3: oklch(0.93 0.08 137.929);
--chart-4: oklch(0.945 0.063 137.886);
--chart-5: oklch(0.861 0.086 317.596);
}