Night Mode with Mix Blend Mode: Difference
Here’s a clever shortcut to creating a dark mode by using mix-blend-mode: difference
.
Here’s a clever shortcut to creating a dark mode by using mix-blend-mode: difference
.
I had to read through this twice, but I think I get it now (I’m not the sharpest knife in the drawer). Very useful if you’re doing theming in CSS.
On Ev’s blog, Marcin goes into great detail on theming an interface using CSS custom properties, SVG, HSL, and a smattering of CSS filters.
I was kind of amazed that all of this could happen via CSS and CSS alone: the colours, the transitions, the vectors, and even the images.
Harry demonstrates a really good use for CSS custom properties—allowing users to theme an interface.