Skip to content

Conversation

@krisjdev
Copy link
Collaborator

This PR makes it so that the logo in the navbar follows the website theme...
image

...and that the favicon follows the browser/OS preference.

image

Tested on Chromium (top) and Firefox (bottom) by changing between the light/dark themes manually. The Chrome(ium) version takes a moment to update when toggling between the themes.

The colour of the logo in the favicon is determined by a stylesheet in the SVG itself - it uses `prefers-color-scheme` in order to colour the logo.

It does not follow the theme of the website but follows the browser/OS choice.

The SVG in this commit had to be manually edited, since Inkscape didn't want to play nice with the CSS. If this file gets edited in the future, be careful to not accidentally break this functionality.

Using an SVG here was preferred over using the existing `favicon-white.png` and `favicon.ico` because Docusaurus did not provide a handy feature to toggle between the light/dark mode favicons, in the same way that it did for the logo in the navbar (with `navbar.logo.src` and `navbar.logo.srcDark`).
@urish urish merged commit 1595ff8 into wokwi:main Nov 23, 2025
1 check passed
@urish
Copy link
Contributor

urish commented Nov 23, 2025

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants