P粉0738579112023-08-31 13:09:42
One way is to add a text panel with HTML mode in the dashboard and add some custom CSS as content, for example:
<style type="text/css"> [data-testid="header-container"] { background-color:red; } </style>
EDIT: If you see the original code in the text panel display, you may need to set disable_sanitize_html in your grafana settings.
Then all dashboards (including panels) are styled with this CSS, this is an example panel in kiosk mode, the path is https://[grafana server domain]/dashboard/new?orgId=1&viewPanel=1&kiosk