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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.