pandocs icon indicating copy to clipboard operation
pandocs copied to clipboard

Invert light images in dark themes

Open avivace opened this issue 3 years ago • 1 comments

CSS filter: invert(1.0) can be easily applied to almost every image when a dark theme is selected. The result is very nice and will allow us to not rewrite/redesign every image for the dark themes.

However, we need a "not-invert" class for the images for which this effect doesn't work very well or the "themed" SVG already pointing to the CSS variables of the selected theme.

avivace avatar Oct 01 '21 22:10 avivace

The "themed" SVGs don't use the <img> tag, so they wouldn't be affected anyway.

ISSOtm avatar Oct 02 '21 10:10 ISSOtm