When using the '@databricks/aibi-client' library to embed a BI dashboard inside a databricks app, the " colorScheme: 'dark' " setting is ignored when the app's 'prefer-color-scheme' is 'light' by default.
As a result, I am unable to set my dashboards to dark mode when they are embedded inside a databricks app.
const dashboard = new DatabricksDashboard({
instanceUrl: ...,
workspaceId: ...,
dashboardId: ...,
token: ...,
container: containerElement,
colorScheme: 'dark'
}
Summary:
- Environment: Databricks Apps
- Library: @DataBricks/aibi-client
- Configuration: " colorScheme: 'dark' "
- Result: Dashboard object contains colorScheme='dark' but iframe root renders: ' :root { color-scheme: light; }'
- Local environment: dashboard correctly renders in dark mode when " colorScheme: 'dark' " is set
- Databricks app environment: dashboard always renders incorrectly in light mode