How to enable Embedded Mode

Hi,

I’m new to the Grafana Community, hello everyone!

I’m using Grafana 11.3.1 on my Raspberry Pi. I’m using it to display my measurement data in an IOBroker Smart Home environment using InfluxDB as my database for measurement data.

I’m wondering if Grafana offers an option to disable background permanently. I want a transparent background, because I embed dashboards to IOBroker VIS-2 and therefore need transparent backgrounds. I have found by modifying

/usr/share/grafana/public/views/index.html

With there values in <style> section:

:root{
color-scheme: light dark !important;
}

body,
.dashboard-container,
.panel-content,
.panel-container,
.panel-solo,
.dashboard-solo{
background: none !important;
background-color: none !important;
}

The background will be tansparent. Only problem is that after upgrading Grafana the settings will be lost.

So is there a permanent solution?