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

View all the Fabric Data Days sessions on demand. View schedule

Reply
Anonymous
Not applicable

Color Visual Title - Power Bi Theme

Hi all,

I'm trying to set the color of my visual title using a Power BI theme in form of a JSON file.

I am not able to get the color working correctly, I was looking at other topics in this regard but none of the solutions seem to work (this one for instance).

 

Current code looks like below, size and font are adjusted correctly but color is not.

 

"textClasses": {
		"label": {
			"fontFace": "Ubuntu",
			"fontSize": 9
		},
		"callout": {
			"fontFace": "Ubuntu",
			"fontSize": 10,
			"color": "#0070AD"
		},
		"title": {
			"fontFace": "Ubuntu",
			"fontSize": 12,
			"color": "#0070AD"
		},
		"largeTitle": {
			"fontFace": "Ubuntu",
			"fontSize": 12,
			"color": "#0070AD"
		},
		"header": {
			"fontFace": "Ubuntu",
			"fontSize": 10,
			"color": "#0070AD"
		}
	}

 

I've also tried to put the title color directly in the VisualStyles as opposed to the textClass but no luck either..

 

"title": [{
                    "show": true,
                    "fontColor": { "solid": { "color": "#0070AD" } },
                    "background": { "solid": { "color": "#FFFFFF" } },
                    "fontSize": 12
                                    }]

 

 

Any advice on how to get this done? Kind of frustrating that I can't get the titles of the visuals in the desired correctly.

Strangely enough the slicer titles do end up in the correct color but other visuals (line charts etc.) don't.

 

Thanks for any tips.

 

1 REPLY 1
v-cazheng-msft
Community Support
Community Support

Hi

Please custom visual title by this steps. Rename the extension of the pbix file to zip>Find the JSON file in Base Theme folder(relative path:Report\StaticResources\SharedResources\BaseThemes)>Paste the JSON file and make changes to it>

 

v-cazheng-msft_0-1620631226578.png

 

Rename zip file to pbix file>Browse for themes and find the JSON file to import it

v-cazheng-msft_1-1620631226581.png

 

v-cazheng-msft_2-1620631226582.png

 

The result looks like this:

v-cazheng-msft_3-1620631226585.png

 

If you still have question, please let me known.

 

Best Regards

Caiyun Zheng

 

If this post helps, please consider make it as the solution by Accept it as Solution. Really appreciate!

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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