Light and Dark Mode Images in MkDocs Material
The MkDocs Material theme has built-in support for theme-aware images using standard Markdown syntax. No HTML is required.
Toggle the palette icon in the header to see the logo switch between its light and dark variants:

If you are using GitHub Markdown instead, see the companion post: Light and Dark Mode Images in GitHub Markdown.
