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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
ansa_naz
Continued Contributor
Continued Contributor

Create a them file to set title font size and colour for all visuals - HOW??

Hi all

 

I want to create a theme file so that it sets the font size and font colour for ALL visual titles, without having to set it individually for each visual type. Is this possible? I cant seem to find any answers online which would show this is possible

 

My current theme file is:

 

{
    "name": "Company Theme",
    "dataColors": ["#48740f", "#6c9a25", "#89bf36", "#aacc66", "#f2b52c" ,"#D79A12", "#bb7711", "#a11919"],
    "background":"#FFFFFF",
    "foreground": "#48740f",
    "tableAccent": "#6c9a25"
}

Any help most appreciated

 

Cheers

2 REPLIES 2
v-chuncz-msft
Community Support
Community Support

@ansa_naz,

 

You may take a look at https://powerbi.microsoft.com/en-us/blog/power-bi-desktop-july-2018-feature-summary/#theme.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi, I have used the link provided to try to set up default title and other visual properties. However, the file doesnt import. Any chance there is an issue with the new features added? My new file is:

 

{
    "name": "Company Theme",
    "dataColors": ["#48740f", "#6c9a25", "#89bf36", "#aacc66", "#f2b52c" ,"#D79A12", "#bb7711", "#a11919"],
    "background":"#FFFFFF",
    "foreground": "#48740f",
    "tableAccent": "#6c9a25"
	"visualStyles": {
		"*": {
			"*": {
				"title": [{
					"show": true,
					"fontColor": { "solid": { "color": "##000000" } },
					"background": { "solid": { "color": "#FFFFFF" } },
					"alignment": "left",
					"fontSize": 10,
					"fontFamily": "Segoe UI"
				}],
				"background": [{
					"show": false,
					"color": { "solid": { "color": "#FFFFFF" } },
					"transparency": 50
				}],
				"lockAspect": [{
					"show": false
				}],
				"border": [{
					"show": false,
					"color": { "solid": { "color": "#FFFFFF" } }
				}],
				"visualTooltip": [{
					"type": "Default"
				}],
				"stylePreset": [{
					"name": "None"
				}]
			} 
		}
	}
	"page": {
		"*": {
			"background": [{
				"color": { "solid": { "color": "#FFFFFF" } },
				"transparency": 100
			}],
			"outspace": [{
				"color": { "solid": { "color": "#FFFFFF" } },
				"transparency": 0
			}]
		}
	}
}

Any ideas what the issue may be?

Cheers

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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