In RustCrypto crates we use SVG logo which changes style depending on preferred theme using @media(prefers-color-scheme:dark) { .. } CSS rules. You can see the sha2 docs for an example which uses it.
But the problem is how the logo gets rendered on dark themes:


The reason for such horrible result is the white shadow filter applied to the logo. I understand why it was added, but I think it's a wrong approach, especially for projects which aim to properly support dark themes in their media files.
In RustCrypto crates we use SVG logo which changes style depending on preferred theme using
@media(prefers-color-scheme:dark) { .. }CSS rules. You can see thesha2docs for an example which uses it.But the problem is how the logo gets rendered on dark themes:


The reason for such horrible result is the white shadow filter applied to the logo. I understand why it was added, but I think it's a wrong approach, especially for projects which aim to properly support dark themes in their media files.