# Kibana 7.x dark mode

**URL:** <https://discuss.elastic.co/t/kibana-7-x-dark-mode/183428>\
**Category:** Kibana\
**Created:** [May 29, 2019, 10:55pm UTC](https://discuss.elastic.co/t/kibana-7-x-dark-mode/183428 "2019-05-29T22:55:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fragatina](https://avatars.discourse-cdn.com/v4/letter/f/ccd318/32.png) [@fragatina](https://discuss.elastic.co/u/fragatina)\
**Post date:** [May 29, 2019, 10:55pm UTC](https://discuss.elastic.co/t/kibana-7-x-dark-mode/183428/1 "2019-05-29T22:55:15Z")

</div>

Is there a way to set kibana dark mode using an API?  
(The equivalent of flipping the 'dark mode' switch on _Management \> Advanced settings_)

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![Bargs](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bargs/32/5429_2.png) [@Bargs](https://discuss.elastic.co/u/Bargs)\
**Post date:** [May 30, 2019, 9:11pm UTC](https://discuss.elastic.co/t/kibana-7-x-dark-mode/183428/2 "2019-05-30T21:11:10Z")

</div>

There is an API, however it is not publicly documented so it is subject to change at any time. You can use it to set the dark mode setting like this:

```auto
POST <kibana-host>/api/kibana/settings/theme:darkMode
{
	"value": true
}

```

---

<div class="post-metadata">

**Author:** ![fragatina](https://avatars.discourse-cdn.com/v4/letter/f/ccd318/32.png) [@fragatina](https://discuss.elastic.co/u/fragatina)\
**Post date:** [May 31, 2019, 2:12am UTC](https://discuss.elastic.co/t/kibana-7-x-dark-mode/183428/3 "2019-05-31T02:12:12Z")

</div>

Thanks @Bargs!  
As long there will be support to set darkMode on the future, I don't mind changing the API.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 28, 2019, 2:12am UTC](https://discuss.elastic.co/t/kibana-7-x-dark-mode/183428/4 "2019-06-28T02:12:26Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
