mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-26 01:12:21 +00:00
Centralizes dark mode state in ThemeContext so a single source manages the `dark` class on <html>, persists the preference to localStorage, and wraps children with antd's ConfigProvider (darkAlgorithm). The previously hidden navbar toggle is now rendered and functional. - ThemeContext now exposes isDarkMode / toggleDarkMode and applies the Tailwind `dark` class + antd dark algorithm based on the stored value. - Navbar isDarkMode / toggleDarkMode props are optional and fall back to the context; the toggle is no longer gated behind a `false &&` flag. - Root page and dashboard layout consume the context instead of holding their own local dark mode state / duplicate ConfigProvider. - Tailwind dark variants added to navbar and dashboard shell so the most visible surfaces respect the theme. - globals.css adds `.dark` overrides for the body background tokens. https://claude.ai/code/session_01SkckoL68328QgB5ifQwntT |
||
|---|---|---|
| .. | ||
| litellm-dashboard | ||
| Dockerfile | ||
| nginx.conf | ||