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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Prachi_Punglia
Frequent Visitor

How to change font color of text in buttons on different state 'hover', 'default' in json theme file

Need to change text colour of buttons according to different state using power Bi theme 

1 ACCEPTED SOLUTION
v-zhangti
Community Support
Community Support

Hi, @Prachi_Punglia 

 

To change the font color of text in buttons on different states (such as 'hover' and 'default') in a JSON theme file for Power BI, you will need to modify the appropriate properties in the JSON file. Here are the steps you can follow:

  • 1. Open the JSON theme file in a text editor or IDE.
  • 2. Locate the section of the file that defines the button styles. This may be labeled as "buttonStyles" or something similar.
  • 3. Look for the properties that control the font color of the button text. These may be labeled as "fontColor", "textColor", or something similar.
  • 4. Modify the values of these properties to the desired color for each state. You may need to add additional properties for each state if they are not already defined in the file.
  • 5. Save the modified JSON theme file.

Once you have made these changes, you can apply the theme to your Power BI report and the button text should appear in the new colors for each state.

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-zhangti
Community Support
Community Support

Hi, @Prachi_Punglia 

 

To change the font color of text in buttons on different states (such as 'hover' and 'default') in a JSON theme file for Power BI, you will need to modify the appropriate properties in the JSON file. Here are the steps you can follow:

  • 1. Open the JSON theme file in a text editor or IDE.
  • 2. Locate the section of the file that defines the button styles. This may be labeled as "buttonStyles" or something similar.
  • 3. Look for the properties that control the font color of the button text. These may be labeled as "fontColor", "textColor", or something similar.
  • 4. Modify the values of these properties to the desired color for each state. You may need to add additional properties for each state if they are not already defined in the file.
  • 5. Save the modified JSON theme file.

Once you have made these changes, you can apply the theme to your Power BI report and the button text should appear in the new colors for each state.

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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