elegantapp / pwa-asset-generator

Automates PWA asset generation and image declaration. Automatically generates icon and splash screen images, favicons and mstile images. Updates manifest.json and index.html files with the generated images according to Web App Manifest specs and Apple Human Interface guidelines.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.