From 35fe2daa52f8a6b8b7e00f0786eb9e3a1b273fe5 Mon Sep 17 00:00:00 2001 From: gretmn102 Date: Thu, 15 Aug 2024 23:52:21 +0300 Subject: [PATCH] feat: set light mode by system setting Closes: #8 --- docusaurus.config.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docusaurus.config.ts b/docusaurus.config.ts index 574afcf..9475405 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -110,6 +110,11 @@ const config: Config = { theme: prismThemes.github, darkTheme: prismThemes.dracula, }, + colorMode: { + defaultMode: 'dark', + disableSwitch: false, + respectPrefersColorScheme: true, + }, } satisfies Preset.ThemeConfig, };