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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Anonymous
Not applicable

Power BI theme implementation on custom visual

Hi I'm trying to add powerbi theme color palette to my custom visual, I was able to generate color palette using IVisualHost.colorPalette.getColor() function and successfully change color based on different theme selections, but in the default theme selection I don't want to use that color palette provide by powerbi, so is there is any way to detect if the selected theme is default or not?

vyshnav4u_0-1661276544066.png

 

 

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous,

Thanks for the replay, I implemnetd theme support in custom visual, but what I want is if I selected the default theme I don't want to use the color palette powerbi provides, So in order to achieve that I need to know which theme is currently active(selected by the user), so is there is any way to know which theme is currently set by the user.

Anonymous
Not applicable

Hi @Anonymous,

AFAIK, the current power bi theme does not work for custom visuals. If you want to custom visual also interact with the theme settings, you need to add code support about the theme and properties.

Adding formatting options to a Power BI custom visual - Power BI | Microsoft Docs

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.