Skip to content

Commit

Permalink
feat: set light mode by system setting
Browse files Browse the repository at this point in the history
Closes: #8
  • Loading branch information
gretmn102 committed Aug 15, 2024
1 parent dbb056e commit b014683
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,11 @@ const config: Config = {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
},
colorMode: {
defaultMode: 'dark',
disableSwitch: false,
respectPrefersColorScheme: true,
},
} satisfies Preset.ThemeConfig,
};

Expand Down

0 comments on commit b014683

Please sign in to comment.