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
Anonymous
Not applicable

Report Theme File: Advanced JSON Commands / Parameters

Hey, Internet!

 

I'm putting together Report Theme JSON files for my team so we have consistent branding and functionality across all of our Power BI solutions, but I'm struggling to find guides for writing JSON files that aren't just the basic commands/parameters. For example, I'm looking to change the font color for buttons when the button is pressed. (If anything, providing button commands/parameters alone would be helpful.)

 

For context and to help others who are unaware, here are the resources that I have found so far for anybody that might need them.

 

Thank you in advance!

 

- Peyton

2 REPLIES 2
Drewdel
Advocate II
Advocate II

This is what I use for my company's theme .json but it doesn't have all parameters as I myself am still trying to find and build a full theme template; Microsoft is horrible at documenting and explaining in simplistic terms as you've probibly seen.  This code just makes a simple circular button with a thicker ring when hovered but you can mess around with the values and enter your own colours and such.

Hope this helped a little.

"actionButton":{
	"*":{
		"outline":[
			{"show":false}
			,{
				"$id":"default"
				,"lineColor":{"solid":{"color":"#3498db"}}
				,"transparency":0
				,"weight":2
				,"roundEdge":90
			}
			,{
				"$id":"hover"
				,"lineColor":{"solid":{"color":"#3498db"}}
				,"transparency":0
				,"weight":3
				,"roundEdge":90
			}
			,{
				"$id":"selected"
				,"lineColor":{"solid":{"color":"#00668a"}}
				,"transparency":0
				,"weight":3
				,"roundEdge":90
			}
		]
		,"fill":[
			{"show":false}
			,{
				"$id":"default"
				,"transparency":100
				,"fillColor":{"solid":{"color":""}}
			}
			,{
				"$id":"hover"
				,"transparency":100
				,"fillColor":{"solid":{"color":""}}
			}
			,{
				"$id":"selected"
				,"transparency":100
				,"fillColor":{"solid":{"color":""}}
			}
		]
		,"title":[{
			"show":false
		}]
		,"background":[{
			"show":false
		}]
	}
}
v-chuncz-msft
Community Support
Community Support

@Anonymous 

 

You may take a look at this post and give feedback via Ideas to help improve Power BI.

 

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.

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.