Kibana Plugin detect Dark Mode on New Platform

Hi I have a Kibana Plugin that I have installed on my Kibana instance, but it is in light mode while the rest of the instance is in dark mode.

I have tried to find information on retrieving the dark mode setting config, but I have not been able to do so. How can I get my plugin to detect if it is light or dark modes and then adjust itself when it loads?

(I am using Kibana 7.6.2 right now)

Thanks!

Make sure your root .scss file includes the following @import '@elastic/eui/src/components/header/variables';

1 Like

Hi Nathan!

I tried to add this, but I am getting an error that it can't resolve that path. So I looked and I didn't find this in the codebase either (eui/src/components/header at master · elastic/eui · GitHub).
Any other ideas?

Thanks!

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