Skip to content

Commit

Permalink
chore: dark mode as default and respect user's color scheme preferenc…
Browse files Browse the repository at this point in the history
…e in theme config
  • Loading branch information
kuizuo committed Jun 22, 2024
1 parent c44762d commit 61c3b50
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ const config: Config = {
'是一个由愧怍创建的个人博客,主要分享编程开发知识和项目,该网站基于 React 驱动的静态网站生成器 Docusaurus 构建。',
},
themeConfig: {
colorMode: {
defaultMode: 'dark',
respectPrefersColorScheme: true,
},
// announcementBar: {
// id: 'announcementBar-3',
// content: ``,
Expand Down

0 comments on commit 61c3b50

Please sign in to comment.