Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

text classes code not working

Hi, 

 

I am trying to do a customized theme and was trying out the templates provided on the website here: https://docs.microsoft.com/en-us/power-bi/desktop-report-themes 

However when I tried to use the textclasses code provided, powerbi failed to load the json file. 

 

This is the exact code I used that is found in the website: 

{"name": "Custom Theme",

"textClasses":

{"callout": {"fontSize": 45, "fontFace": "wf_standard-font", "color": "#252423"},

"title": {"fontSize": 12, "fontFace": "wf_standard-font", "color": "#252423"},

"header": {"fontSize": 12, "fontFace": "Segoe UI Semibold", "color": "#252423"},

"label": {"fontSize": 10, "fontFace": "Segoe UI", "color": "#252423"}}}

 

Can someone please help with this? 

 

Thank you! 

3 REPLIES 3
v-juanli-msft
Community Support
Community Support

Hi @Anonymous 

Is this problem sloved? 
If it is sloved, could you kindly accept it as a solution to close this case?
If not, please let me know.
 
Best Regards
Maggie
v-juanli-msft
Community Support
Community Support

Hi @Anonymous 

I make a test that paste the "text class" code from this site into a text file and save this file as a .json file,

then import the theme from the "import theme", you can see the card data format is changed as the custom theme written.

Capture1.JPGCapture2.JPG

Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi, 

 

That's exactly what I did, but the powerbi did not accept this code at all: 

 

{
"name": "Custom Theme",
"textClasses": {
"callout": {
"fontSize": 45,
"fontFace": "wf_standard-font",
"color": "#252423"
},
"title": {
"fontSize": 12,
"fontFace": "wf_standard-font",
"color": "#252423"
},
"header": {
"fontSize": 12,
"fontFace": "Segoe UI Semibold",
"color": "#252423"
},
"label": {
"fontSize": 10,
"fontFace": "Segoe UI",
"color": "#252423"
}
}
}

 

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.