Skip to content

Commit 50afb09

Browse files
authored
feat: enable automatic theme switching based on system preferences (#214)
1 parent f6dcd39 commit 50afb09

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docusaurus.config.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,11 @@ const config: Config = {
240240
],
241241

242242
themeConfig: {
243+
colorMode: {
244+
defaultMode: 'light',
245+
disableSwitch: false,
246+
respectPrefersColorScheme: true,
247+
},
243248
image: 'img/social-share.png',
244249
navbar: {
245250
logo: {

0 commit comments

Comments
 (0)