LaTeXML
LaTeXML copied to clipboard
SVG output: use current color?
I use LaTeXML to generate HTML5 that is eventually integrated into a site that supports "dark" and "light" modes. This process includes a number of tikz figures that LaTeXML translates into SVG. The SVG includes color definitions such as #000000, but this causes a problem when the site is placed into dark mode, as the black lines are hidden by the black background.
Would it be possible to use "currentColor" as the default color for SVG figures? This allows the figure to adopt the "foreground" color, which the dark and light modes change. I found that a simple replacement of #000000 with currentColor in the generated HTML5 worked nicely.