also called two-tone mapping · bichromate
A brand-colour treatment that survives any source image. Grayscale the base, then lay a single hue over it with mix-blend-mode. A true duotone maps every grey onto the line between two inks. Here the dark ink is the ground and the light ink shows through a mask made of the photograph’s own luminance: bright tones let through more of it, dark ones less. Both inks are registered colours, so choosing a pair eases every sleeve into it.
How it is built
.sleeve { background: var(--dark) } /* ink one: the ground */
.sleeve .ink { background: var(--light); /* ink two, through the photograph */
mask: var(--src) center / cover luminance }
/* each tone lands between the inks: dark + v × (light − dark) */
.duo:has(#ink-blue:checked) .sleeve { --dark: …; --light: … }In full, on GitHub index.html showcase.css
Photographs — William P. Gottlieb, 1946–47, from the William P. Gottlieb Collection at the Library of Congress, which at his wish entered the public domain in 2010; via Wikimedia Commons: Billie Holiday, Charlie Parker, Thelonious Monk, Sarah Vaughan, Ella Fitzgerald, Billy Strayhorn.





