prefers-color-scheme: dark not set for svg icon
JonathanILevi opened this issue · comments
Describe the bug
SVG supports <style> tags with @media (prefers-color-scheme: dark)
. This tool does not set that for svgs, like it does for html, when in dark-mode.
To Reproduce
Generate using an icon like this one with -d
:
<style>@media (prefers-color-scheme: dark) {.fg {fill: #fff;}}</style>
Expected behavior
The svg icon above should render #000
normally and #fff
in dark mode. It renders #000
regardless.