Closed Neilblaze closed 1 year ago
@ltagliaferri thoughts on this?
Hi @Neilblaze, the docs site is automatically set up to run dark or light mode based on system preferences. FWIW, we are thinking about replatforming the site in the near to mid-term future. I don't think this is an urgent need as docs are the more important concern, but if you feel strongly about it you can certainly open a PR.
Description
Most users nowadays prefer surfing docs with
Dark-Mode
enabled. But, in the current design, the user has to first scroll down to the bottom & then can access the toggle button to switch between themes, which I believe is a bad UX.Solution
I propose a solution where we can shift the button to the sticky navbar which will remain fixed even if we scroll down, so that the user can switch between themes anytime they want. Plus, we can also shift the "Built with Nuxt" promo to the sidebar to make to reduce unnecessary space wastage on the viewport.
Final look 👇🏼