Vuepress: Integrated dark mode

Created on 18 Apr 2018  Â·  4Comments  Â·  Source: vuejs/vuepress

Feature suggestion — an included, toggleable dark mode would be nice. Not sure how to approach this from a UI perspective, though. Perhaps a button in the sidebar or nav bar?

All 4 comments

We want to keep the default theme minimal and won't be adding features that can be done in custom themes.

@yyx990803, @ulivz in case you reconsider:

Leaving a link here about how Safari will be able to be queried for possible current dark mode:

https://www.macstories.net/news/safari-technology-preview-allows-websites-to-switch-themes-based-on-mojaves-dark-mode/

Couldn't find anything about how to do it on Windows (in the future).

Hello @yyx990803,

Can you give some hint's (or link to example) how can I implement this light/dark toggle in VuePress with default theme?
Youtube recently added this nice feature, and it's looks awesome!
It's really nice to have toggle dark mode functionality in evening and let people eyes relax a little bit...


Regards,
Maksim

IMO prefers-color-scheme is something almost all websites should support someday.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kid1412621 picture kid1412621  Â·  3Comments

cfjedimaster picture cfjedimaster  Â·  3Comments

tinchox5 picture tinchox5  Â·  3Comments

shaodahong picture shaodahong  Â·  3Comments

sankincn picture sankincn  Â·  3Comments