Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
Hello,
I'm trying to get the values from a theme within a custom visual.
I can get the color settings with the `ColorHelper`, but how can I get values about font family, size, and colors?
If I look into this sample theme:
https://gist.github.com/gonz4lex/7097bc0a7c6b40a7067a065965ad6414
or
https://github.com/mattrudy/PowerBI-ThemeTemplates/blob/master/GlobalLevelTemplate.json
Multiple values could be defaults for custom visuals (color, font family, alignment for labels and titles, even background color, transparency, or border radius).
Two questions:
1. Is there a way to get them with the API?
2. Are all these properties also present in the default theme?
Thanks
ralph
After some more research, I have the impression that there is no way to initialize a chart with values from the theme.
It seems that the concept of themes isn't integrated into PBI custom visuals.
Could confirm my theory?
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.