LAION-AI / LAION-AI/Open-Assistant

Keep dark mode when refresh

Open
#2,022 1 comment 0 reactions 0 assignees View on GitHub

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.