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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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 Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.

Top Solution Authors
Top Kudoed Authors