Skip to content

Dark Theme by Default #8655

Answered by yufeih
moonymachine asked this question in Q&A
Apr 18, 2023 · 3 comments · 2 replies
Discussion options

You must be logged in to vote

Docfx default to auto which respects user's browser setting. Users theme preferences are stored in localStorage, customize the template to execute localStorage.setItem('theme', 'dark') before docfx.js should do the trick.

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@moonymachine
Comment options

@wilkinson-steve
Comment options

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