From 6203142ec691ee4e2e5acd1af3cc35414168ae5c Mon Sep 17 00:00:00 2001 From: Kumaraguru <19eucs071@skcet.ac.in> Date: Wed, 22 Mar 2023 10:56:57 +0530 Subject: [PATCH] Adding a theme toggle Switches between light mode and dark mode with the default theme being light mode. --- docusaurus.config.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docusaurus.config.js b/docusaurus.config.js index 4d374cc..f1ff7d7 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -85,6 +85,11 @@ const config = { }, ], }, + colorMode: { + defaultMode: "light", + disableSwitch: false, + respectPrefersColorScheme: false, + }, }), plugins: [