Skip to content

Dark mode flashed on fisrt and next load. #387

Closed
@wxsms

Description

@wxsms

Bug report

Description

Firstly, thanks for the decent tool, helps a lot. But this problem is really annoying, and killing my eyes.

maybe this gif can be clear enough (the button I click means "refresh"):

2

Steps to reproduce

  1. Set system to dark theme (win10 for me)
  2. Open the document website, it flashed
  3. Open it again or refresh, it flashed again
  • Reproduction link / repo:

https://v2.vuepress.vuejs.org/

Expected behavior

Darkmode should not flash, at least when I open it twice.

Screenshots

provided gif above.

Environment info

  • Browser: Chrome
  • Output of vuepress info: no need maybe? It can be reproduce with the official website.

A solution, maybe, we can simply remove the transition of the theme switching on page load, an it will become better?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions