Skip to content

Commit 1cf8f37

Browse files
committed
add colorMode config for docusaurus
respect system dark mode
1 parent b076c3d commit 1cf8f37

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

frontend/docusaurus.config.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,11 @@ const config: Config = {
346346
// Optional: whether the insights feature is enabled or not on Docsearch (`false` by default)
347347
insights: false,
348348
},
349+
colorMode: {
350+
defaultMode: "light",
351+
disableSwitch: false,
352+
respectPrefersColorScheme: true,
353+
},
349354
} satisfies Preset.ThemeConfig,
350355
};
351356

0 commit comments

Comments
 (0)