Enable dark mode in Docusaurus once
antonym opened this issue ยท 9 comments
Enable dark mode in Docusaurus theme, need to set changing of theme to flip back and forth from svg logo. Logic for css needs to be changed to identify mode and flip to these:
https://github.com/netbootxyz/netboot.xyz-docs/blob/master/static/img/nbxyz-logo-dark.svg
https://github.com/netbootxyz/netboot.xyz-docs/blob/master/static/img/nbxyz-logo.svg
Source file here:
https://github.com/netbootxyz/netboot.xyz-docs/blob/master/src/components/HomepageFeatures.js
I would love to work on this issue, will implement this using state management ๐โโ๏ธ
That'd be great... I haven't had time to dig into moving past the default layout other then setting new images and modifying the text, I was able to modify it but it seems like the default could handle dark and light mode better.
Cool, I think I can make it work but will be fine if I send a PR on the 1st? as it will be counted for hacktober only then? If its urgent I can do it now. I will make the changes asap, does that work out for you?
Yeah, I'll make sure we get it tagged and we can wait until Hacktoberfest starts to merge it so you can get credit for sure.
Yep, looks great, the logos were just dark before but looks fixed now.
Hey @antonym , its 12 am EST and hacktober has officially began, would be great if you can assign this to me and I will send in a PR ASAP
Sent a PR at #36
Thanks again, I had to make one small tweak to the iPXE logo but it looks great!