cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Juitper123
New Member

JSON file multiple Fonts and or theme error

Hi Experts

 

I cannot see where my error is on my JSON file, i have included mulitple fonts in my JSON file or i have made an error in constructing the JSON. But Power BI is not like the theme file. 

"name": "blahblah",
"visualStyles": {
"*": {
"*": {
"background": [
{
"color": {
"solid": {
"color": "#F3F4F5"
}
}
}
]
}
},
"page": {
"*": {
"background": [
{
"color": {
"solid": {
"color": "#E2E8EB"
}
},
"transparency": 0
}
],
"outspace": [
{
"transparency": 0
}
]
}
}
},
"textClasses": {
"label": {
"color": "#032F61",
"fontFace": "Nationale Bold, Nationale, Nationale Bold Italic, Nationale Italic"
},
"callout": {
"color": "#032F61",
"fontFace": "Nationale Bold, Nationale, Nationale Bold Italic, Nationale Italic"
},
"title": {
"color": "#032F61",
"fontFace": "Nationale Bold, Nationale, Nationale Bold Italic, Nationale Italic"
},
"header": {
"color": "#032F61",
"fontFace": "Nationale Bold, Nationale, Nationale Bold Italic, Nationale Italic"
}
},
"bad": "#D83434",
"neutral": "#F7B500",
"good": "#00AA00",
"dataColors": [
"#196ED5",
"#032F61",
"#EAEFF7",
"#D90B79",
"#FF269A",
"#FFECF6",
"#FFFFFF",
"#196ED5",
"#EDF5FF",
"#1BA39C",
"#EEFFFE",
"#5E3752",
"#8B8A33",
"#808080",
"#B8B8B8",
"#E2E8EB",
"#F3F4F5",
"#06A7A9",
"#196ED5",
"#123AV8"
]
}
1 ACCEPTED SOLUTION
Eyelyn9
Community Support
Community Support

Hi @Juitper123 ,

 

If you want to customize report themes , I'd suggest you click Customize theme . For even more control, you can optionally export a theme's JSON file and make fine-tuned adjustments by manually modifying the settings in that file. You can rename that fine-tuned JSON file and later import it.

Eyelyn9_0-1632807758008.png

 

For more details, please kindly refer to the official document below, which provides some json syntax:

Use report themes in Power BI Desktop - Power BI | Microsoft Docs

 

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Eyelyn9
Community Support
Community Support

Hi @Juitper123 ,

 

If you want to customize report themes , I'd suggest you click Customize theme . For even more control, you can optionally export a theme's JSON file and make fine-tuned adjustments by manually modifying the settings in that file. You can rename that fine-tuned JSON file and later import it.

Eyelyn9_0-1632807758008.png

 

For more details, please kindly refer to the official document below, which provides some json syntax:

Use report themes in Power BI Desktop - Power BI | Microsoft Docs

 

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

amitchandak
Super User
Super User

@Juitper123 , I check on Json formatter , The first line has error

"name": "blahblah",
"visualStyles": 

 

from where you have created that

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!! !!
Dashboard of My Blogs !! Connect on Linkedin
Want To Learn Power BI
Learn Power BI Beginners !! Advance Power BI Concepts !! Power BI For Tableau User !! Learn Power BI in Hindi !!
Proud to be a Super User!

{
  "name": "BlahBlah",
  "visualStyles": {
    "*": {
      "*": {
        "background": [
          {
            "color": {
              "solid": {
                "color": "#F3F4F5"
              }
            }
          }
        ]
      }
    },
    "page": {
      "*": {
        "background": [
          {
            "color": {
              "solid": {
                "color": "#E2E8EB"
              }
            },
            "transparency": 0
          }
        ],
        "outspace": [
          {
            "transparency": 0
          }
        ]
      }
    }
  },
  "textClasses": {
    "label": {
      "color": "#032F61",
      "fontFace": "Nationale, Nationale Bold, Nationale Bold Italic, Nationale Italic, sans-serif"
    },
    "callout": {
      "color": "#032F61",
      "fontFace": "Nationale, Nationale Bold, Nationale Bold Italic, Nationale Italic, sans-serif"
    },
    "title": {
      "color": "#032F61",
      "fontFace": "Nationale, Nationale Bold, Nationale Bold Italic, Nationale Italic, sans-serif"
    },
    "header": {
      "color": "#032F61",
      "fontFace": "Nationale, Nationale Bold, Nationale Bold Italic, Nationale Italic, sans-serif"
    }
  },
  "bad": "#D83434",
  "neutral": "#F7B500",
  "good": "#00AA00",
  "dataColors": [
    "#196ED5",
    "#032F61",
	"#EAEFF7",
	"#D90B79",
	"#FF269A",
	"#FFECF6",
	"#FFFFFF",
	"#196ED5",
	"#EDF5FF",
	"#1BA39C",
	"#EEFFFE",
	"#5E3752",
	"#8B8A33",
	"#808080",
	"#B8B8B8",
	"#E2E8EB",
	"#F3F4F5",
	"#06A7A9",
	"#196ED5",
	"#123AV8"	
  ]
}

See update code with correct and still not liking it

Helpful resources

Announcements
Power BI December 2021 Update_carousel 768x460.jpg

Check it Out!

Click here to read more about the December 2021 Updates!

Jan 2022 Dev Camp 768x460 copy.png

Power BI Dev Camp- January 27th, 2022

Mark your calendars and join us for our next Power BI Dev Camp!

UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Top Solution Authors
Top Kudoed Authors