LAION-AI / LAION-AI/Open-Assistant
Keep dark mode when refresh
Open
Nobody has claimed this yet.
- #2034 by @Anantha-Kandrapu — closed without merging
website
- Dominant language
- Python
- Stars
- 37.4k
- Forks
- 3.3k
- PR merge metrics
- No merged PRs in 30d
Description
There is a blink on the UI when refresh the page and the dark mode is activated.
Maybe it's possible to keep that user preference in a cookie, so when the page is refreshed there won't be any blink.
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 locating the frontend dark-mode initialization and reproduce the blink during a page refresh with dark mode enabled. Done means the existing dark-mode preference is restored before the page is displayed, without a visible light-mode flash.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- nextjs
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100