From f7a99724ad2ebd3a85cef4a14eda42c873a4395d Mon Sep 17 00:00:00 2001 From: Eugene <91225197+jewhyena@users.noreply.github> Date: Wed, 9 Oct 2024 23:01:07 +0300 Subject: [PATCH] feat: respect user's preferred color scheme --- docusaurus.config.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docusaurus.config.js b/docusaurus.config.js index 2ad89381c8..67e304657e 100755 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -11,6 +11,11 @@ export default { projectName: 'react-navigation.github.io', scripts: ['/js/snack-helpers.js', '/js/toc-fixes.js'], themeConfig: { + colorMode: { + defaultMode: 'light', + disableSwitch: false, + respectPrefersColorScheme: true, + }, prism: { theme: require('prism-react-renderer').themes.github, darkTheme: require('prism-react-renderer').themes.dracula,