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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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