mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-09 22:31:41 +00:00
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
This commit is contained in:
parent
e156c66575
commit
5ae99e2761
1 changed files with 5 additions and 0 deletions
|
|
@ -231,6 +231,11 @@ const config = {
|
|||
],
|
||||
copyright: `Copyright © ${new Date().getFullYear()} liteLLM`,
|
||||
},
|
||||
colorMode: {
|
||||
defaultMode: 'light',
|
||||
disableSwitch: false,
|
||||
respectPrefersColorScheme: true,
|
||||
},
|
||||
prism: {
|
||||
theme: lightCodeTheme,
|
||||
darkTheme: darkCodeTheme,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue