docsy-example icon indicating copy to clipboard operation
docsy-example copied to clipboard

Light mode toggle does not work when clicking theme switch button

Open ChiragTankan opened this issue 11 months ago • 3 comments

Bug description

When clicking the theme toggle button in the top-right corner, the site does not switch to light mode. Dark mode remains active and no visible change occurs.

Steps to reproduce

  1. Open the site
  2. Click the theme (light/dark) toggle in the top-right corner
  3. Observe that light mode is not applied

Expected behavior

The site should switch between dark and light themes when clicking the toggle button.

Actual behavior

Light mode does not activate after clicking the toggle.

Environment

  • Browser: Chrome / Firefox (mention yours)
  • OS: (mention yours)
  • Project: Docsy sample site

Additional context

This appears to be related to theme switching logic or missing CSS variables for light mode. I would like to work on fixing this issue.

ChiragTankan avatar Dec 26 '25 15:12 ChiragTankan

Hi maintainers 👋
I’d like to work on this issue. Could you please assign it to me?

ChiragTankan avatar Dec 26 '25 15:12 ChiragTankan

Hi. Which site are you referring to? The theme selector works fine for the example site, see https://example.docsy.dev/docs/.

chalin avatar Jan 15 '26 09:01 chalin

Hi. The toggle is working fine in all sites I'm using, including this one. Closing the issue. Feel free to create a new one if the problem persists and you have an example of a (public) site for which it is failing.

chalin avatar Jan 29 '26 01:01 chalin