# Setting Dark/Light Mode in Kibana iFrames

**URL:** <https://discuss.elastic.co/t/setting-dark-light-mode-in-kibana-iframes/392091>\
**Category:** Kibana\
**Created:** [November 30, 2026, 4:09pm UTC](https://discuss.elastic.co/t/setting-dark-light-mode-in-kibana-iframes/392091 "2026-11-30T16:09:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![apayne](https://avatars.discourse-cdn.com/v4/letter/a/a3d4f5/32.png) [@apayne](https://discuss.elastic.co/u/apayne)\
**Post date:** [November 30, 2026, 4:09pm UTC](https://discuss.elastic.co/t/setting-dark-light-mode-in-kibana-iframes/392091/1 "2026-11-30T16:09:24Z")

</div>

We embed a Kibana dashboard in an iFrame on our own page, which has a light/dark mode toggle. Until now, we've been able to match the theme in the iFrame by copying the dashboard into two spaces (one set to light mode, the other to dark), and embedding the matching version.

In Kibana 9, the option to set the theme of a space has been deprecated. The docs say it will be removed in a future version, and set only to the system theme. Is there any other way to set or change the theme of an embedded dashboard from the host page, for example through an embed URL parameter?

---

<div class="post-metadata">

**Author:** ![NorrisFByrd](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/norrisfbyrd/32/148800_2.png) [@NorrisFByrd](https://discuss.elastic.co/u/NorrisFByrd)\
**Post date:** [December 1, 2026, 6:23am UTC](https://discuss.elastic.co/t/setting-dark-light-mode-in-kibana-iframes/392091/2 "2026-12-01T06:23:41Z")

</div>

I ran into the same thing when the space theme option went away. We kept two spaces for a while too, and keeping both dashboards in sync was a pain. I have not found a clean URL parameter for it either, so I am curious what others are doing now.
