themesberg / themesberg/flowbite
Dark mode toggle working only when system is light mode
Nobody has claimed this yet.
- Dominant language
- HTML
- Stars
- 9.4k
- Forks
- 862
- PR merge metrics
- No merged PRs in 30d
Description
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:
- Set system in dark mode
- 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):
- macOS [e.g. iOS]
- Chrome
- v130.0.6723.70
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the dark-mode toggle with macOS set to dark mode in Chrome v130. Then locate the dark-mode toggle entry point and trace how system preference and manual state interact. Done means clicking the toggle changes modes reliably regardless of the system’s default theme.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, tailwindcss
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100