# How can the "Light" theme mode be enforced globally?

**URL:** <https://community.icinga.com/t/how-can-the-light-theme-mode-be-enforced-globally/9548>\
**Category:** Icinga Web\
**Created:** [March 31, 2022, 8:16am UTC](https://community.icinga.com/t/how-can-the-light-theme-mode-be-enforced-globally/9548 "2022-03-31T08:16:57Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![virtualdreams](https://community.icinga.com/user_avatar/community.icinga.com/virtualdreams/32/5423_2.png) [@virtualdreams](https://community.icinga.com/u/virtualdreams)\
**Post date:** [March 31, 2022, 8:16am UTC](https://community.icinga.com/t/how-can-the-light-theme-mode-be-enforced-globally/9548/1 "2022-03-31T08:16:57Z")

</div>

I don’t like the new default theme and i dont like the default theme mode ist dark. How can i enforce the “light” mode for every user and not only under accounts?

- Icinga Web 2 version 2.10
- Used modules and their versions (System - About)
- Web browser used: Firefox
- Icinga 2 version used (`icinga2 --version`): 2.13.2
- PHP version used (`php --version`): 7.4.28
- Server operating system and version: Debian 11

---

<div class="post-metadata">

**Author:** ![nilmerg](https://community.icinga.com/user_avatar/community.icinga.com/nilmerg/32/277_2.png) [@nilmerg](https://community.icinga.com/u/nilmerg)\
**Post date:** [March 31, 2022, 8:48am UTC](https://community.icinga.com/t/how-can-the-light-theme-mode-be-enforced-globally/9548/2 "2022-03-31T08:48:01Z")

</div>

You can’t. That only works for themes, not modes.

---

<div class="post-metadata">

**Author:** ![virtualdreams](https://community.icinga.com/user_avatar/community.icinga.com/virtualdreams/32/5423_2.png) [@virtualdreams](https://community.icinga.com/u/virtualdreams)\
**Post date:** [March 31, 2022, 8:52am UTC](https://community.icinga.com/t/how-can-the-light-theme-mode-be-enforced-globally/9548/3 "2022-03-31T08:52:47Z")

</div>

Ok. That’s really bad. Other modules that don’t have a dark/light mode look like crap.

The mode should definitely be globally configurable.

---

<div class="post-metadata">

**Author:** ![nilmerg](https://community.icinga.com/user_avatar/community.icinga.com/nilmerg/32/277_2.png) [@nilmerg](https://community.icinga.com/u/nilmerg)\
**Post date:** [March 31, 2022, 9:05am UTC](https://community.icinga.com/t/how-can-the-light-theme-mode-be-enforced-globally/9548/4 "2022-03-31T09:05:27Z")

</div>

Icinga modules already have support for both modes. Director will get an update soon as well. If you have your own modules, you should invest time in adjusting these. (As described [here](https://icinga.com/blog/2022/02/10/icinga-web-not-just-black-and-white/))

If you have no time for this now, Icinga Web 2.10 is no mandatory upgrade, stay on 2.9.x then.

---

<div class="post-metadata">

**Author:** ![virtualdreams](https://community.icinga.com/user_avatar/community.icinga.com/virtualdreams/32/5423_2.png) [@virtualdreams](https://community.icinga.com/u/virtualdreams)\
**Post date:** [March 31, 2022, 9:18am UTC](https://community.icinga.com/t/how-can-the-light-theme-mode-be-enforced-globally/9548/5 "2022-03-31T09:18:59Z")

</div>

Specifically, I have a problem with the dark/light mode of the grafana module. I have set this to light. The graph is rendered white, even if Icinga is in dark mode, which just looks stupid. The problem is more with the module and grafana, but it’s still annoying. The light mode compensates for this a bit.

---

<div class="post-metadata">

**Author:** ![nilmerg](https://community.icinga.com/user_avatar/community.icinga.com/nilmerg/32/277_2.png) [@nilmerg](https://community.icinga.com/u/nilmerg)\
**Post date:** [March 31, 2022, 9:49am UTC](https://community.icinga.com/t/how-can-the-light-theme-mode-be-enforced-globally/9548/6 "2022-03-31T09:49:50Z")

</div>

We also provided a patch for grafana: [CSS: Improve theme mode compatibility by flourish86 · Pull Request #283 · Mikesch-mp/icingaweb2-module-grafana · GitHub](https://github.com/Mikesch-mp/icingaweb2-module-grafana/pull/283)

It’s already merged in the master, but there’s no release yet. Probably because the author is on vacation. (I read this somewhere else)

---

<div class="post-metadata">

**Author:** ![virtualdreams](https://community.icinga.com/user_avatar/community.icinga.com/virtualdreams/32/5423_2.png) [@virtualdreams](https://community.icinga.com/u/virtualdreams)\
**Post date:** [March 31, 2022, 10:05am UTC](https://community.icinga.com/t/how-can-the-light-theme-mode-be-enforced-globally/9548/7 "2022-03-31T10:05:23Z")

</div>

Thanks, looks good. As far as I can see it only fixes the menu, not the graph color itself, see Modules \> grafana \> Configuration \>“Grafana Theme” = Dark or Light.

Of course this can’t be fixed by Icingaweb, but Dark or Light should be able to be set depending on the Theme Mode. So again the module author. 🙂

---

<div class="post-metadata">

**Author:** ![geotekberlin](https://community.icinga.com/user_avatar/community.icinga.com/geotekberlin/32/4480_2.png) [@geotekberlin](https://community.icinga.com/u/geotekberlin)\
**Post date:** [July 10, 2025, 4:28pm UTC](https://community.icinga.com/t/how-can-the-light-theme-mode-be-enforced-globally/9548/8 "2025-07-10T16:28:40Z")

</div>

I don’t like the dark mode either. As a workaround I tried to create a new theme with fixed light mode. However, this new theme inherits dark mode only. Is there any documentation how to inherit the default light mode in a new theme?
