farridav/django-jazzmin

Navbar still in light mode even DarkMode is applied

Opened this issue · 4 comments

JAZZMIN_UI_TWEAKS = {
"theme": "darkly"
}

Even applying dark mode to the theme the navbar/Topmenu is still in light mode

Screenshot 2023-11-04 223835

@sarthak09walia hello, dark theme is actually determined by the "dark mode theme" variable on settings like this;

JAZZMIN_UI_TWEAKS = {
    ...
    "theme": "flatly",
    "dark_mode_theme": "darkly",
}

If you want to examine it in detail: https://django-jazzmin.readthedocs.io/ui_customisation/#dark-mode-enabled

I'm having this same issue even when setting {"theme": "darkly, "dark_mode_theme": "darkly"} or {"theme": "slate, "dark_mode_theme": "slate"}

The inline fields are also white with white text

Chrome on OSX with dark mode set in OSX and set in Chrome
It looks like the light mode theme is being used regardless of the setting and some elements aren't respecting the light theme anyways

Screenshot 2024-03-19 at 1 38 34 PM

@raimondi1337 hello, check your "JAZZMIN_UI_TWEAKS" in settings.py some values may remain light.