Harmless is a shadcn/ui theme built around a vivid deep pink primary color (#880231) with vivid deep teal accents (#028859). The light mode uses a neutral background (#ffffff). Dark mode keeps the vivid deep pink primary (#880231) on a pink-tinted background (#0b0407).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #0b0407black |
| Foreground | #040102black | #fcf8f9snow |
| Card | #fcfcfcsnow | #0f0609black |
| Card foreground | #000000black | #fdfcfcsnow |
| Popover | #ffffffwhite | #0b0407black |
| Popover foreground | #040102black | #fcf8f9snow |
| Primary | #880231darkred | #880231darkred |
| Primary foreground | #febed4pink | #febed4pink |
| Secondary | #028859teal | #028859teal |
| Secondary foreground | #ffffffwhite | #ffffffwhite |
| Muted | #d5e7e1gainsboro | #182a24black |
| Muted foreground | #4f5f59dimgray | #a0b0abdarkgray |
| Accent | #028859teal | #028859teal |
| Accent foreground | #ffffffwhite | #ffffffwhite |
| Destructive | #9d180cfirebrick | #ef3a2acrimson |
| Destructive foreground | #fde0demistyrose | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #880231darkred | #880231darkred |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.78:1 | AAA |
| Text on card | 20.54:1 | AAA |
| Primary button | 6.46:1 | AA |
| Secondary button | 4.51:1 | AA |
| Muted text | 5.24:1 | AA |
| Accent | 4.51:1 | AA |
| Destructive | 6.60:1 | AA |
| Text on background | 19.24:1 | AAA |
| Text on card | 19.55:1 | AAA |
| Primary button | 6.46:1 | AA |
| Secondary button | 4.51:1 | AA |
| Muted text | 6.65:1 | AA |
| Accent | 4.51:1 | AA |
| Destructive | 3.95:1 | AA Large |
Paste this into your globals.css to use Harmless in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.08 0.022 353.016);
--muted: oklch(0.912 0.021 172.896);
--muted-foreground: oklch(0.469 0.021 172.194);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.08 0.022 353.016);
--card: oklch(0.992 0 161.565);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.4 0.158 11.644);
--primary-foreground: oklch(0.865 0.079 356.072);
--secondary: oklch(0.552 0.124 160.32);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.552 0.124 160.32);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.447 0.168 30.071);
--destructive-foreground: oklch(0.93 0.031 23.939);
--ring: oklch(0.4 0.158 11.644);
--chart-1: oklch(0.4 0.158 11.644);
--chart-2: oklch(0.552 0.124 160.32);
--chart-3: oklch(0.552 0.124 160.32);
--chart-4: oklch(0.596 0.134 160.112);
--chart-5: oklch(0.403 0.161 12.21);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.124 0.016 353.373);
--foreground: oklch(0.983 0.004 353.685);
--muted: oklch(0.267 0.027 170.22);
--muted-foreground: oklch(0.744 0.019 172.809);
--popover: oklch(0.124 0.016 353.373);
--popover-foreground: oklch(0.983 0.004 353.685);
--card: oklch(0.137 0.019 354.72);
--card-foreground: oklch(0.991 0.002 353.629);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.4 0.158 11.644);
--primary-foreground: oklch(0.865 0.079 356.072);
--secondary: oklch(0.552 0.124 160.32);
--secondary-foreground: oklch(1 0 180);
--accent: oklch(0.552 0.124 160.32);
--accent-foreground: oklch(1 0 180);
--destructive: oklch(0.625 0.219 29.751);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.4 0.158 11.644);
--chart-1: oklch(0.4 0.158 11.644);
--chart-2: oklch(0.552 0.124 160.32);
--chart-3: oklch(0.552 0.124 160.32);
--chart-4: oklch(0.596 0.134 160.112);
--chart-5: oklch(0.403 0.161 12.21);
}