Harmless is a shadcn/ui theme built around a vivid light purple primary color (#f698ed) with muted purple accents (#c9b6c7). The light mode uses a neutral background (#fdfcfd). Dark mode keeps the vivid light purple primary (#f698ed) on a neutral background (#070307).
| Token | Light | Dark |
|---|---|---|
| Background | #fdfcfdwhite | #070307black |
| Foreground | #140513black | #fcf8fbsnow |
| Card | #fdfcfdwhite | #070307black |
| Card foreground | #140513black | #fcf8fbsnow |
| Popover | #fdfcfdwhite | #070307black |
| Popover foreground | #140513black | #fcf8fbsnow |
| Primary | #f698edviolet | #f698edviolet |
| Primary foreground | #54074dindigo | #54074dindigo |
| Secondary | #dad3d9lightgrey | #343233darkslategray |
| Secondary foreground | #433842darkslategray | #cdcbcclightgrey |
| Muted | #dddaddgainsboro | #252225darkslategray |
| Muted foreground | #494649darkslategray | #b9b6b9silver |
| Accent | #c9b6c7silver | #4e464ddarkslategray |
| Accent foreground | #2c212bdarkslategray | #e5e1e4gainsboro |
| Destructive | #700201maroon | #fe322fcrimson |
| Destructive foreground | #ffa5a4lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f698edviolet | #f698edviolet |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.30:1 | AAA |
| Text on card | 19.30:1 | AAA |
| Primary button | 7.00:1 | AAA |
| Secondary button | 7.56:1 | AAA |
| Muted text | 6.69:1 | AA |
| Accent | 8.06:1 | AAA |
| Destructive | 6.59:1 | AA |
| Text on background | 19.48:1 | AAA |
| Text on card | 19.48:1 | AAA |
| Primary button | 7.00:1 | AAA |
| Secondary button | 7.85:1 | AAA |
| Muted text | 7.83:1 | AAA |
| Accent | 7.05:1 | AAA |
| Destructive | 3.67:1 | AA Large |
Paste this into your globals.css to use Harmless in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.992 0.003 328.624);
--foreground: oklch(0.151 0.039 330.967);
--muted: oklch(0.891 0.006 328.665);
--muted-foreground: oklch(0.398 0.006 328.75);
--popover: oklch(0.992 0.003 328.624);
--popover-foreground: oklch(0.151 0.039 330.967);
--card: oklch(0.992 0.003 328.624);
--card-foreground: oklch(0.151 0.039 330.967);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.802 0.154 330.543);
--primary-foreground: oklch(0.314 0.132 333.079);
--secondary: oklch(0.873 0.012 328.744);
--secondary-foreground: oklch(0.355 0.023 329.272);
--accent: oklch(0.797 0.032 329.028);
--accent-foreground: oklch(0.264 0.025 329.601);
--destructive: oklch(0.343 0.139 29.498);
--destructive-foreground: oklch(0.811 0.106 20.717);
--ring: oklch(0.802 0.154 330.543);
--chart-1: oklch(0.802 0.154 330.543);
--chart-2: oklch(0.873 0.012 328.744);
--chart-3: oklch(0.797 0.032 329.028);
--chart-4: oklch(0.897 0.01 328.712);
--chart-5: oklch(0.802 0.159 330.606);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.109 0.02 329.649);
--foreground: oklch(0.983 0.006 328.66);
--muted: oklch(0.257 0.008 328.929);
--muted-foreground: oklch(0.78 0.005 328.661);
--popover: oklch(0.109 0.02 329.649);
--popover-foreground: oklch(0.983 0.006 328.66);
--card: oklch(0.109 0.02 329.649);
--card-foreground: oklch(0.983 0.006 328.66);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.802 0.154 330.543);
--primary-foreground: oklch(0.314 0.132 333.079);
--secondary: oklch(0.32 0.002 328.667);
--secondary-foreground: oklch(0.845 0.002 328.615);
--accent: oklch(0.404 0.018 329.063);
--accent-foreground: oklch(0.914 0.005 328.659);
--destructive: oklch(0.646 0.237 27.652);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.802 0.154 330.543);
--chart-1: oklch(0.802 0.154 330.543);
--chart-2: oklch(0.32 0.002 328.667);
--chart-3: oklch(0.404 0.018 329.063);
--chart-4: oklch(0.35 0.002 328.669);
--chart-5: oklch(0.802 0.159 330.606);
}