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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
abdul2134
Frequent Visitor

Json Theme

Hi,

 

i have been trying to work out a way to create a theme witht he added help of having a background for the card visual.

I was wondering if there is anyway of doing this is. if so it would greatly appreciated.

 

thanks

1 ACCEPTED SOLUTION
v-yuezhe-msft
Microsoft Employee
Microsoft Employee

@abdul2134,

There is an example for you.

{
    "name": "MYTHEME",
    "background": "#FFFFFF",
    "foreground": "#000000",
    "tableAccent": "#5073b9",
    "dataColors": [
        "#003366",
        "#5073b9",
        "#82A1BD",
        "#A8C5E0",
        "#A4D3E3",
        "#366996",
        "#304E64",
        "#004576",
        "#666666",
        "#000000"
    ],
    "visualStyles": {
        "card": {
            "*": {
                "title":  [{

                    "show": true,

                    "fontColor": { "solid": { "color": "#F17925" } },

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

                    "alignment": "center",

                    "fontSize": 11,

                    "fontFamily": "Arial"

                }],
                "background": [{

                    "show": true,

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

                    "transparency": 50

                }],
                "lockAspect": [{

                    "show": true

                }],
                "border": [{

                    "show": true,

                    "color": { "solid": { "color": "#F17925" } }

                }]
            }
        }
}
}


Reference:
https://powerbi.microsoft.com/en-us/blog/power-bi-desktop-july-2018-feature-summary/#theme


Regards,
Lydia

Community Support Team _ Lydia Zhang
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-yuezhe-msft
Microsoft Employee
Microsoft Employee

@abdul2134,

There is an example for you.

{
    "name": "MYTHEME",
    "background": "#FFFFFF",
    "foreground": "#000000",
    "tableAccent": "#5073b9",
    "dataColors": [
        "#003366",
        "#5073b9",
        "#82A1BD",
        "#A8C5E0",
        "#A4D3E3",
        "#366996",
        "#304E64",
        "#004576",
        "#666666",
        "#000000"
    ],
    "visualStyles": {
        "card": {
            "*": {
                "title":  [{

                    "show": true,

                    "fontColor": { "solid": { "color": "#F17925" } },

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

                    "alignment": "center",

                    "fontSize": 11,

                    "fontFamily": "Arial"

                }],
                "background": [{

                    "show": true,

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

                    "transparency": 50

                }],
                "lockAspect": [{

                    "show": true

                }],
                "border": [{

                    "show": true,

                    "color": { "solid": { "color": "#F17925" } }

                }]
            }
        }
}
}


Reference:
https://powerbi.microsoft.com/en-us/blog/power-bi-desktop-july-2018-feature-summary/#theme


Regards,
Lydia

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

Hi, 

 

maybe you can help me by my problem: 

 

https://community.powerbi.com/t5/Desktop/report-theme-set-border-for-all-visuals/m-p/520921#M243646

 

Thanks you for your time! 

 

best regards

Nick

thanks for that @v-yuezhe-msft

 

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

July 2024 Power BI Update

Power BI Monthly Update - July 2024

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

July Newsletter

Fabric Community Update - July 2024

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