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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Custom theme Page section

Does anybody know the correct syntact for the "size" and "alignment" in the page section?

 

We want to create customised themes for all our clients, including the page section. So far I found working code for background, filter pane and filter cards. For the size and alignment I haven't been able to find anything, or write my own working code.

1 ACCEPTED SOLUTION
v-lid-msft
Community Support
Community Support

Hi @Anonymous ,

 

Based on my research, the size of page cannot set in theme file. Currently, page element with can be customized is as below:

 

"page": {

                "*": {

                  "background": [{

                   "color": { "solid": { "color": "#FFFFFF" } },

                   "transparency": 25

                }],

                "outspace": [{

                    "color": { "solid": { "color": "#004753" } },

                    "transparency": 0

                }]

            }

        }   

Please refer to the similar thrends:

https://community.powerbi.com/t5/Desktop/Set-default-size-of-visuals-in-custom-theme-file/m-p/473003#M219864

https://community.powerbi.com/t5/Desktop/Setting-the-page-size-in-theme/td-p/472597


Sorry for that, but I also not found an effective solution to achieve your requirement, perhaps you can submit the requirement to ideas or vote to the similar ideas.

 

Best regards,

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Community Support Team _ Dong Li
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

3 REPLIES 3
v-lid-msft
Community Support
Community Support

Hi @Anonymous ,

 

Based on my research, the size of page cannot set in theme file. Currently, page element with can be customized is as below:

 

"page": {

                "*": {

                  "background": [{

                   "color": { "solid": { "color": "#FFFFFF" } },

                   "transparency": 25

                }],

                "outspace": [{

                    "color": { "solid": { "color": "#004753" } },

                    "transparency": 0

                }]

            }

        }   

Please refer to the similar thrends:

https://community.powerbi.com/t5/Desktop/Set-default-size-of-visuals-in-custom-theme-file/m-p/473003#M219864

https://community.powerbi.com/t5/Desktop/Setting-the-page-size-in-theme/td-p/472597


Sorry for that, but I also not found an effective solution to achieve your requirement, perhaps you can submit the requirement to ideas or vote to the similar ideas.

 

Best regards,

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi @amitchandak,

 

We did indeed include all the functionality mentioned in the links you sent. Generally I found that the page element is poorly described, as is shown by the fact that both the Microsoft documentation as well as the Theme Generator completely ignore it.

 

@v-lid-msft, I was afraid that this would be the answer. I will post the idea.

 

Thank for the replies!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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