Base16 Dark Harmonic is a shadcn/ui theme built around a muted light blue primary color (#cbd6e2) with deep blue accents (#1b446a). The light mode uses a blue-tinted background (#0b1d2d). Dark mode keeps the muted light blue primary (#cbd6e2) on a blue-tinted background (#0b1d2d).
| Token | Light | Dark |
|---|---|---|
| Background | #0b1d2dblack | #0b1d2dblack |
| Foreground | #cbd6e2lightgrey | #cbd6e2lightgrey |
| Card | #091725black | #091725black |
| Card foreground | #dbe3ebgainsboro | #dbe3ebgainsboro |
| Popover | #081521black | #081521black |
| Popover foreground | #ebf0f4whitesmoke | #ebf0f4whitesmoke |
| Primary | #cbd6e2lightgrey | #cbd6e2lightgrey |
| Primary foreground | #2c3d4edarkslategray | #2c3d4edarkslategray |
| Secondary | #343f4bdarkslategray | #343f4bdarkslategray |
| Secondary foreground | #d2d9e0gainsboro | #d2d9e0gainsboro |
| Muted | #22262bdarkslategray | #22262bdarkslategray |
| Muted foreground | #9ba6b0darkgray | #9ba6b0darkgray |
| Accent | #1b446adarkslategray | #1b446adarkslategray |
| Accent foreground | #c6dcf1powderblue | #c6dcf1powderblue |
| Destructive | #e03315orangered | #e03315orangered |
| Destructive foreground | #ffffffwhite | #ffffffwhite |
| Border | #14293ddarkslategray | #14293ddarkslategray |
| Input | #183149darkslategray | #183149darkslategray |
| Ring | #cbd6e2lightgrey | #cbd6e2lightgrey |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 11.64:1 | AAA |
| Text on card | 13.91:1 | AAA |
| Primary button | 7.54:1 | AAA |
| Secondary button | 7.48:1 | AAA |
| Muted text | 6.12:1 | AA |
| Accent | 7.19:1 | AAA |
| Destructive | 4.50:1 | AA |
| Text on background | 11.64:1 | AAA |
| Text on card | 13.91:1 | AAA |
| Primary button | 7.54:1 | AAA |
| Secondary button | 7.48:1 | AAA |
| Muted text | 6.12:1 | AA |
| Accent | 7.19:1 | AAA |
| Destructive | 4.50:1 | AA |
Paste this into your globals.css to use Base16 Dark Harmonic in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.223 0.04 248.555);
--foreground: oklch(0.871 0.02 249.861);
--muted: oklch(0.267 0.011 246.423);
--muted-foreground: oklch(0.72 0.02 246.277);
--popover: oklch(0.19 0.03 247.971);
--popover-foreground: oklch(0.952 0.007 249.723);
--card: oklch(0.201 0.033 248.276);
--card-foreground: oklch(0.911 0.014 249.79);
--border: oklch(0.276 0.046 248.302);
--input: oklch(0.306 0.053 248.442);
--primary: oklch(0.871 0.02 249.861);
--primary-foreground: oklch(0.352 0.038 250.592);
--secondary: oklch(0.364 0.025 250.25);
--secondary-foreground: oklch(0.881 0.012 249.778);
--accent: oklch(0.376 0.08 249.533);
--accent-foreground: oklch(0.885 0.037 246.444);
--destructive: oklch(0.592 0.212 32.089);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.871 0.02 249.861);
--chart-1: oklch(0.871 0.02 249.861);
--chart-2: oklch(0.364 0.025 250.25);
--chart-3: oklch(0.376 0.08 249.533);
--chart-4: oklch(0.392 0.028 250.261);
--chart-5: oklch(0.87 0.022 249.883);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.223 0.04 248.555);
--foreground: oklch(0.871 0.02 249.861);
--muted: oklch(0.267 0.011 246.423);
--muted-foreground: oklch(0.72 0.02 246.277);
--popover: oklch(0.19 0.03 247.971);
--popover-foreground: oklch(0.952 0.007 249.723);
--card: oklch(0.201 0.033 248.276);
--card-foreground: oklch(0.911 0.014 249.79);
--border: oklch(0.276 0.046 248.302);
--input: oklch(0.306 0.053 248.442);
--primary: oklch(0.871 0.02 249.861);
--primary-foreground: oklch(0.352 0.038 250.592);
--secondary: oklch(0.364 0.025 250.25);
--secondary-foreground: oklch(0.881 0.012 249.778);
--accent: oklch(0.376 0.08 249.533);
--accent-foreground: oklch(0.885 0.037 246.444);
--destructive: oklch(0.592 0.212 32.089);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.871 0.02 249.861);
--chart-1: oklch(0.871 0.02 249.861);
--chart-2: oklch(0.364 0.025 250.25);
--chart-3: oklch(0.376 0.08 249.533);
--chart-4: oklch(0.392 0.028 250.261);
--chart-5: oklch(0.87 0.022 249.883);
}