From 5ae99e27611f0d3557ddec30e6ac8f479689f38b Mon Sep 17 00:00:00 2001 From: Cesar Garcia <128240629+Chesars@users.noreply.github.com> Date: Tue, 18 Nov 2025 00:46:56 -0300 Subject: [PATCH] docs: respect system color scheme preference in Docusaurus (#16748) Configure Docusaurus to automatically detect and respect the user's system/browser color scheme preference (prefers-color-scheme). This improves UX by matching the documentation theme to the user's OS-level dark/light mode setting, while still allowing manual override via the theme switcher. Changes: - Add colorMode configuration to docusaurus.config.js - Enable respectPrefersColorScheme option --- docs/my-website/docusaurus.config.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/my-website/docusaurus.config.js b/docs/my-website/docusaurus.config.js index cec0479f673..4ec74b07c3c 100644 --- a/docs/my-website/docusaurus.config.js +++ b/docs/my-website/docusaurus.config.js @@ -231,6 +231,11 @@ const config = { ], copyright: `Copyright © ${new Date().getFullYear()} liteLLM`, }, + colorMode: { + defaultMode: 'light', + disableSwitch: false, + respectPrefersColorScheme: true, + }, prism: { theme: lightCodeTheme, darkTheme: darkCodeTheme,