fix(css): multiply mix blend for images in dark override color mode (#4763)

This commit is contained in:
Huang Xin
2026-06-24 22:12:10 +08:00
committed by GitHub
parent 005aa2d615
commit f7124cbeea
9 changed files with 168 additions and 3 deletions
+2 -1
View File
@@ -265,7 +265,8 @@ const getColorStyles = (
}
img {
${isDarkMode && invertImgColorInDark ? 'filter: invert(100%);' : ''}
${!isDarkMode && overrideColor ? 'mix-blend-mode: multiply;' : ''}
${isDarkMode && overrideColor ? 'filter: grayscale(100%) contrast(1.2) brightness(1.2);' : ''}
${overrideColor ? 'mix-blend-mode: multiply;' : ''}
}
svg, img {
${overrideColor ? `background-color: transparent !important;` : ''};