-
🎉 Chrome now accepts SVG favicons (crbug.com/294179#c73), which means you can style your icon with inline
prefers-color-scheme
and you'll get two icons for the price of one! Demo: 🌒 dark-mode-favicon.glitch.me/ ☀️ (Test it with the last Chromium build: download-chromium.appspot.com/) -
Full credits to @mathias (via bugs.chromium.org/p/chromium/issues/detail?id=294179#c72), who independently has created almost the same demo as me (numerous-sulfur.glitch.me/) that I didn't check, but whose link to @jaffathecake's post jakearchibald.com/2016/svg-media-queries/ I followed. He filed follow-up crbug.com/1026539.