File Structure
The JSON file comprises four major sections:
The Power BI Theme JSON file has a specific structure that must be followed. It consists of a root object with several key-value pairs. Here's a simplified example:
{
"name": "MyCustomTheme",
"dataColors": ["#0078d4", "#01b8aa", "#374649"],
"visualStyles": {
"visualStylesDefault": {
"visualBackgroundImage": null,
"visualGridlinesColor": "#eaeaea"
}
}
}
"name"
: This key specifies the name of the theme."dataColors"
: An array containing color codes that define the color palette for visuals."visualStyles"
: This section contains sub-properties related to the visual styles applied.