Skip to content
Discussion options

You must be logged in to vote

Probably do it like GitHub used to do?

![foo bar](https://foo.bar/light.svg#light-mode-only)
![foo bar](https://foo.bar/dark.svg#dark-mode-only)

And add this to your styles:

:root.dark [src$="#light-mode-only"] {
  display: none;
}

:root:not(.dark) [src$="#dark-mode-only"] {
  display: none;
}

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@MarkusKeck
Comment options

MarkusKeck Aug 30, 2022
Collaborator Author

Answer selected by brc-dd
Comment options

You must be logged in to vote
1 reply
@Sieboldianus
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants