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
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
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.

Top Solution Authors