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 September 15. 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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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