vwkdV
Deno2y ago
vwkd

How to unset white background of SVG in Jupyter notebook?

I’ve got a Jupyter notebook with Deno kernel in VSCode that displays an SVG. The SVG has a forced white background which doesn’t play well with dark mode.

Digging through the dev tools shows it’s caused by a rule referencing a wrapping div.

.svgContainerStyle svg {
  background-color: white;
}


So, it can’t be the SVG itself. Maybe Deno? Maybe Jupyter fronted? Maybe some of their VSCode extensions?

How can I unset the background color of the SVG?
Was this page helpful?