From 368630f274115e5564566be5b3f430c0e4420361 Mon Sep 17 00:00:00 2001 From: WindowsAddict Date: Tue, 15 Oct 2024 20:43:06 +0530 Subject: [PATCH] Enable respectPrefersColorScheme --- docusaurus.config.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index c5366a4..1ae9d9a 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -73,6 +73,11 @@ const config = { themeConfig: /** @type {import('@docusaurus/preset-classic').ThemeConfig} */ ({ + colorMode: { + defaultMode: 'light', + disableSwitch: false, + respectPrefersColorScheme: true, + }, // Replace with your project's social card image: 'img/card.png', navbar: { @@ -112,7 +117,7 @@ const config = { position: 'left', label: 'Credits', }, - {to: '/blog', label: 'Blog', position: 'right'}, + { to: '/blog', label: 'Blog', position: 'right' }, { to: '/contactus', position: 'right',