Skip to content

how to set default theme to Dark #564

Answered by hschaefer123
phpiscute asked this question in Q&A
Discussion options

You must be logged in to vote

I think i used it it 2.0.0-beta26 or 27 but setting it to white or black only to disable selector.
Maybe they removed the option.
I am also having issues with vite, so i need to dig into more details.

Just had a look into the default theme
https://github.com/vuepress/vuepress-next/blob/main/packages/%40vuepress/theme-default/src/shared/options.ts

The option is still there, but it seems to be only for the toggle and to avoid darkMode. Maybe feature hardly depends on used style in os?

There is also
vuepress-color-scheme', 'auto'
maybe it can be set to dark.

Maybe you can make a feature request, because currently it seems to be only possible by config to disable darkMode toggle and avoid dar…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@phpiscute
Comment options

Comment options

You must be logged in to vote
1 reply
@phpiscute
Comment options

Answer selected by phpiscute
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants