File Structure

The JSON file comprises four major sections:

  1. Theme colors
  2. Structural Colors
  3. Text Classes
  4. Visual Styles

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"
      }
   }
}

Related