Harmless is a shadcn/ui theme built around a vivid light teal primary color (#8efbf0) with vivid light blue accents (#8ecffb). The light mode uses a neutral background (#f7fcfc). Dark mode keeps the vivid light teal primary (#8efbf0) on a neutral background (#010404).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fcfcmintcream | #010404black |
| Foreground | #030c0bblack | #f5faf9mintcream |
| Card | #f4fbfamintcream | #020807black |
| Card foreground | #020808black | #f8fcfbmintcream |
| Popover | #f7fcfcmintcream | #010404black |
| Popover foreground | #030c0bblack | #f5faf9mintcream |
| Primary | #8efbf0aquamarine | #8efbf0aquamarine |
| Primary foreground | #03544cdarkslategray | #03544cdarkslategray |
| Secondary | #8efbb9aquamarine | #8efbb9aquamarine |
| Secondary foreground | #035423darkgreen | #035423darkgreen |
| Muted | #d4e2dagainsboro | #1d2b22darkslategray |
| Muted foreground | #404f46darkslategray | #b0bfb6silver |
| Accent | #8ecffblightskyblue | #8ecffblightskyblue |
| Accent foreground | #033354midnightblue | #033354midnightblue |
| Destructive | #d03c0bfirebrick | #ed450corangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #8efbf0aquamarine | #8efbf0aquamarine |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.17:1 | AAA |
| Text on card | 19.25:1 | AAA |
| Primary button | 7.23:1 | AAA |
| Secondary button | 7.24:1 | AAA |
| Muted text | 6.49:1 | AA |
| Accent | 7.77:1 | AAA |
| Destructive | 4.82:1 | AA |
| Text on background | 19.53:1 | AAA |
| Text on card | 19.53:1 | AAA |
| Primary button | 7.23:1 | AAA |
| Secondary button | 7.24:1 | AAA |
| Muted text | 7.74:1 | AAA |
| Accent | 7.77:1 | AAA |
| Destructive | 3.84:1 | AA Large |
Paste this into your globals.css to use Harmless in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.988 0.005 189.952);
--foreground: oklch(0.145 0.017 188.674);
--muted: oklch(0.901 0.019 159.739);
--muted-foreground: oklch(0.412 0.025 158.743);
--popover: oklch(0.988 0.005 189.952);
--popover-foreground: oklch(0.145 0.017 188.674);
--card: oklch(0.983 0.008 189.888);
--card-foreground: oklch(0.126 0.015 189.26);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.919 0.102 187.223);
--primary-foreground: oklch(0.4 0.07 183.63);
--secondary: oklch(0.905 0.137 156.036);
--secondary-foreground: oklch(0.389 0.106 149.881);
--accent: oklch(0.827 0.091 238.5);
--accent-foreground: oklch(0.311 0.075 244.68);
--destructive: oklch(0.573 0.192 35.824);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.919 0.102 187.223);
--chart-1: oklch(0.919 0.102 187.223);
--chart-2: oklch(0.905 0.137 156.036);
--chart-3: oklch(0.827 0.091 238.5);
--chart-4: oklch(0.915 0.12 156.705);
--chart-5: oklch(0.923 0.105 187.144);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.099 0.01 189.373);
--foreground: oklch(0.981 0.006 189.944);
--muted: oklch(0.272 0.025 157.903);
--muted-foreground: oklch(0.791 0.022 159.591);
--popover: oklch(0.099 0.01 189.373);
--popover-foreground: oklch(0.981 0.006 189.944);
--card: oklch(0.124 0.013 189.373);
--card-foreground: oklch(0.987 0.004 189.989);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.919 0.102 187.223);
--primary-foreground: oklch(0.4 0.07 183.63);
--secondary: oklch(0.905 0.137 156.036);
--secondary-foreground: oklch(0.389 0.106 149.881);
--accent: oklch(0.827 0.091 238.5);
--accent-foreground: oklch(0.311 0.075 244.68);
--destructive: oklch(0.631 0.213 35.668);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.919 0.102 187.223);
--chart-1: oklch(0.919 0.102 187.223);
--chart-2: oklch(0.905 0.137 156.036);
--chart-3: oklch(0.827 0.091 238.5);
--chart-4: oklch(0.915 0.12 156.705);
--chart-5: oklch(0.923 0.105 187.144);
}