specify different dark mode logo
complete
A
Alex F
I also used Ismail Vittal's fix. I didn't find any documentation about how to do this otherwise. Alexey Pyltsyn did the (un-referenced) update to introduce this functionality include a documentation update?
jérémy laurent
Alex F you can specify srcDark under the regular src in your docusaurus.config.ts
P
Pedro Lucas
I couldn't use the https://docusaurus.io/docs/markdown-features/assets#themed-images approach in the docusaurus.config.js so I ended up using Ismail's fix.. Thanks!
Ismail Vittal
Quick CSS fix: (If specific to Docusaurus)
html[data-theme='dark'] .navbar .navbar__logo {
content: url(img/dark-logo.svg)
}
Alexey Pyltsyn
marked this post as
complete
Done, it will be available in the next release!
Alexey Pyltsyn
marked this post as
in progress
Alexey Pyltsyn
marked this post as
planned