themesberg / flowbite

Open-source UI component library and front-end development framework based on Tailwind CSS
https://flowbite.com
MIT License
7.98k stars 746 forks source link

Dark mode toggle working only when system is light mode #987

Open neilpat05 opened 3 weeks ago

neilpat05 commented 3 weeks ago

Describe the bug When my system in light mode, clicking the toggle for the dark mode works well. However, when the system is set in dark mode by default, the toggle simply works erratically.

To Reproduce Steps to reproduce the behavior:

  1. Set system in dark mode
  2. Click 'button' to toggle mode

Expected behavior Explained above

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):