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

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.

Reply
Anonymous
Not applicable

Setting fill color on basic shapes using themes (.json)

Hello everyone

I am trying to create a theme using the documentation that is provided by microsoft.

Unfortunately the Docs are old and some of the methods described have deprecated over time, and other functions have been implemented, but not documented.

 

I got most of the theme going, but i simply can't figure out how to change the fill color of a shape.

I suspect it has to do with the fact that more shapes have been put into PBI since the documentation was written, and that the function thirdLevelElements: backgroundLight that used to decide the fill color of shapes is deprecated at this point.

Hede92_0-1632746169774.png

 

I've tried looking at a old thread about this https://community.powerbi.com/t5/Desktop/Themes-For-Shapes/m-p/196835 and a github containing the functions for a shape https://github.com/deldersveld/PowerBI-ThemeTemplates/blob/master/Shape.json but to no avail.

 

Any help is appreciated.

1 REPLY 1
v-yalanwu-msft
Community Support
Community Support

Hi, @Anonymous ;

I have tried many times, and it was really unsuccessful, I will continue to study.

https://community.powerbi.com/t5/Report-Server/New-Shapes-in-PBI-How-to-Setup-JSON/td-p/1880186

Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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