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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
aalexand
New Member

JSON Theme Button Text Color

Dropbox JSON File Thanks in advance for the help.  This is my first time creating a JSON theme and for the life of me cannot figure out what I am doing that is not allowing the default font color for my theme to be white.  For some reason, I am sure it is my fault, it is defaulting to #001F31.  Each time I load the theme to an existing dashboard, it does everything I am looking for except it erases the text from the buttons and then changes the theme color to #001F31.  In a perfect world I would like to keep whatever text is in the existing button and just change it to #ffffff. 

 

1 REPLY 1
KNP
Super User
Super User

I'm not 100% sure and I need more time than I have right now to debug it.

As you've discovered, it can be quite time consuming and not well documented.

 

That said, you could try adding this in the actionButton section of your theme...

"fontColor": {
							"solid": {
								"color": {
									"expr": {
										"ThemeDataColor": {
											"ColorId": 0,
											"Percent": 0
										}
									}
								}
							}
						}

 

Have I solved your problem?
Please click Accept as Solution so I don't keep coming back to this post, oh yeah, others may find it useful also ;).
chrome-9xf-Zagzel-B

If you found this post helpful, please give Kudos.
It gives me a sense of instant gratification and, if you give me Kudos enough times, magical unicorns will appear on your screen.
If you find my signature vaguely amusing, please give Kudos.
KIfp67uy-Sr
Proud to be a Super User!PBI-Super-User-Rank-30x30-1x

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Feb2025 NL Carousel

Fabric Community Update - February 2025

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