PB
Available
arrow_back Back to Blog

How to Fix Dark Mode Breaking Images on Websites

PB

Patrick Bushe

March 8, 2026 · 5 min read

You install a dark mode extension, excited to browse without eye strain. You open a website and the background is dark, the text is light — perfect. Then you notice that every photo looks like a film negative, logos are inverted, and charts are unreadable. The dark mode "fixed" the text but destroyed everything else.

Why Dark Mode Breaks Images

Most simple dark mode implementations work by inverting colors on the entire page. White becomes black, black becomes white, and everything in between flips. This works great for text and backgrounds but catastrophically fails for images, because inverting a photograph turns it into a color negative.

Some extensions try to fix this by re-inverting images, but this creates a double-inversion problem with transparent PNGs, SVGs, and CSS background images. Logos that use transparency end up with wrong colors. Icons that are designed for light backgrounds look broken on dark backgrounds.

The Chrome Built-in Approach

Chrome has an experimental forced dark mode feature you can enable in chrome://flags by searching for "Auto Dark Mode for Web Contents." It's better than simple inversion because it uses a more sophisticated algorithm, but it still struggles with many websites. Custom-styled elements, CSS gradients, and dynamically loaded content often render incorrectly.

The Proper Solution

Modern Dark Mode uses a different approach entirely. Instead of inverting colors, it analyzes the page structure and applies intelligent color mapping. Backgrounds become dark, text becomes light, but images are left untouched. The extension also handles edge cases like transparent PNGs on dark backgrounds, inline SVG icons, and CSS background images.

The result is dark mode that looks like it was designed by the website's own team. Photos display normally, logos keep their original colors, and data visualizations remain readable.

Per-Site Controls

Not every website needs dark mode, and some websites already have their own dark theme. Modern Dark Mode includes per-site toggles so you can disable it on sites that handle dark mode natively or enable it only on specific sites that you browse at night.

You can also schedule dark mode to activate automatically at sunset and deactivate at sunrise, so your daytime browsing stays normal while nighttime browsing is easy on the eyes.

If you've given up on dark mode because of image issues, Modern Dark Mode solves the problem that made you quit.

More Tools by Patrick Bushe

Free Chrome extensions to boost your productivity and privacy