Harmless is a shadcn/ui theme built around a muted blue primary color (#869ebb) with muted orange accents (#bba386). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted blue primary (#869ebb) on a neutral background (#030508).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030508black |
| Foreground | #030c16black | #fbfcfdwhite |
| Card | #ffffffwhite | #030508black |
| Card foreground | #030c16black | #fbfcfdwhite |
| Popover | #ffffffwhite | #030508black |
| Popover foreground | #030c16black | #fbfcfdwhite |
| Primary | #869ebbdarkgray | #869ebbdarkgray |
| Primary foreground | #06070ablack | #06070ablack |
| Secondary | #bba386rosybrown | #bba386rosybrown |
| Secondary foreground | #0a0806black | #0a0806black |
| Muted | #f3f0edwhitesmoke | #12100cblack |
| Muted foreground | #58524bdarkolivegreen | #b4aea7darkgray |
| Accent | #bba386rosybrown | #bba386rosybrown |
| Accent foreground | #0a0806black | #0a0806black |
| Destructive | #d0460bchocolate | #f5743dtomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #869ebbdarkgray | #869ebbdarkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.66:1 | AAA |
| Text on card | 19.66:1 | AAA |
| Primary button | 7.31:1 | AAA |
| Secondary button | 8.30:1 | AAA |
| Muted text | 6.78:1 | AA |
| Accent | 8.30:1 | AAA |
| Destructive | 4.58:1 | AA |
| Text on background | 19.89:1 | AAA |
| Text on card | 19.89:1 | AAA |
| Primary button | 7.31:1 | AAA |
| Secondary button | 8.30:1 | AAA |
| Muted text | 8.65:1 | AAA |
| Accent | 8.30:1 | AAA |
| Destructive | 7.45:1 | AAA |
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.15 0.027 249.668);
--muted: oklch(0.956 0.005 73.178);
--muted-foreground: oklch(0.443 0.014 72.957);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.15 0.027 249.668);
--card: oklch(1 0 180);
--card-foreground: oklch(0.15 0.027 249.668);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.691 0.051 253.621);
--primary-foreground: oklch(0.13 0.007 249.263);
--secondary: oklch(0.73 0.049 72.514);
--secondary-foreground: oklch(0.135 0.007 77.006);
--accent: oklch(0.73 0.049 72.514);
--accent-foreground: oklch(0.135 0.007 77.006);
--destructive: oklch(0.583 0.184 38.587);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.691 0.051 253.621);
--chart-1: oklch(0.691 0.051 253.621);
--chart-2: oklch(0.73 0.049 72.514);
--chart-3: oklch(0.73 0.049 72.514);
--chart-4: oklch(0.752 0.045 72.624);
--chart-5: oklch(0.69 0.056 253.659);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.111 0.011 246);
--foreground: oklch(0.992 0.002 253.231);
--muted: oklch(0.173 0.008 72.783);
--muted-foreground: oklch(0.754 0.012 73.095);
--popover: oklch(0.111 0.011 246);
--popover-foreground: oklch(0.992 0.002 253.231);
--card: oklch(0.111 0.011 246);
--card-foreground: oklch(0.992 0.002 253.231);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.691 0.051 253.621);
--primary-foreground: oklch(0.13 0.007 249.263);
--secondary: oklch(0.73 0.049 72.514);
--secondary-foreground: oklch(0.135 0.007 77.006);
--accent: oklch(0.73 0.049 72.514);
--accent-foreground: oklch(0.135 0.007 77.006);
--destructive: oklch(0.703 0.172 42.19);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.691 0.051 253.621);
--chart-1: oklch(0.691 0.051 253.621);
--chart-2: oklch(0.73 0.049 72.514);
--chart-3: oklch(0.73 0.049 72.514);
--chart-4: oklch(0.752 0.045 72.624);
--chart-5: oklch(0.69 0.056 253.659);
}