fix: improve dark mode background colors in email viewer

This commit is contained in:
Linus Rath
2026-05-17 17:39:49 +02:00
parent 1ba4a13353
commit 243a2adfbf
+2 -2
View File
@@ -2740,8 +2740,8 @@ export function EmailViewer({
// i.e. light-on-light. The second rule disables filter on bgcolor-like
// elements that are descendants of another bgcolor-like element.
const darkModeCSS = isDark && !emailHasNativeDarkMode ? `
html { background: #1a1a1a; }
body { filter: invert(1) hue-rotate(180deg); }
html { background: #121212; }
body { filter: invert(1) hue-rotate(180deg); background: #ededed; }
img, video, svg, canvas, object, embed, input[type="image"] {
filter: invert(1) hue-rotate(180deg);
}