themesberg / themesberg/flowbite

Dark mode toggle working only when system is light mode

Open
#987 0 comments 0 reactions 0 assignees View on GitHub

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:

  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):

  • macOS [e.g. iOS]
  • Chrome
  • v130.0.6723.70

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.