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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.