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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
davebrown89
Frequent Visitor

Custom Theme Import Error with Text Classes

I've seen a lot of other posts about theme import errors but after checking my very limited code I can't seem to find what's throwing this off.  I know it's something with the textClasses portion but everything looks in line based on their article.  Any help/insight would be helpful...

 

{
        "name": "Standard",
			"dataColors": ["#C4C7C8", "#828A8F", "#252423","#92BFCD", "#125687", "#00694E","#575A5D","#000000"],
			"foreground": "#00694E",
				"foregroundNeutralSecondary": "#92BFCD",
				"foregroundNeutralTertiary": "#828A8F",
			"background": "#FFFFFF",
				"backgroundLight": "#C4C7C8",
				"backgroundNeutral": "#828A8F",
			"tableAccent": "#00694E",	
			 "textClasses": 
			 {
					"callout": {
						"fontSize": 9,
						"fontFace": "Arial",
						"color": "#FFFFFF"
					},
					"title": {
						"fontSize": 14,
						"fontFace": "Arial",
						"color": "#000000"
					},
					"header": {
						"fontSize": 12,
						"fontFace": "Arial Bold",
						"color": "#00694E"
					},
					"label": {
						"fontSize": 10,
						"fontFace": "Arial",
						"color": "#000000"
					}
			}    
    }
4 REPLIES 4
robertCharlton
Frequent Visitor

Hey, are you still having problems with this?

I copied the json and it imports okay for me, so the only thing I could think of is that you were accidentally on an earlier release from before the color/text classes were implemented.

Anonymous
Not applicable

Hi Robert, 

 

I am also facing the same issue. I have also updated my powerBI but the problem persists. Is there any other solutions to this? 

 

Would appreciate your help thanks! 

 

v-xicai
Community Support
Community Support

Hi @davebrown89 ,

 

You may refer to the links:

https://community.powerbi.com/t5/Desktop/Error-Importing-Theme-File-in-Power-BI/td-p/304508 ,

https://community.powerbi.com/t5/Desktop/Error-importing-custom-theme/td-p/495407 ,

https://docs.microsoft.com/en-us/power-bi/desktop-report-themes

 

Best Regards,

Amy

 

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

@v-xicai I checked those and read through the support article a few times now but I cannot seem to figure out why the text class portion of the code is failing... my hex codes seem to be formatted correctly and I cannot simply delete that portion of my code as I need to comply with my company's branding requirements.

Helpful resources

Announcements
Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors