Skip to content

Adaptive SVG logos look terrible on dark themes #91653

Closed
@newpavlov

Description

@newpavlov

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:
ayu
dark

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.

Metadata

Metadata

Assignees

Labels

A-rustdoc-themesArea: Themes for HTML pages generated by rustdocA-rustdoc-uiArea: Rustdoc UI (generated HTML)T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions