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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
FireFighter1017
Advocate III
Advocate III

How to modify a theme's JSON file to apply background color to only card visuals with specific name

Hi,

 

I have been building this JSON file where I have set defautl parameters for each visual we are using in our reports.

But there is this "Card" visual required on all our reports that is used to display a list of filters applied.

Normally, I would apply a standard background color #"E1F4F0", but for this particular visual, I'd like to be able to remove the background color when applying the theme.

 

I want to be able to update themes on existing reports, including this specific visual that could eventually need to be updated to a new color palette for example.

 

I can't use templates for that, because that requires to rebuild the report entirely.

I can't use custom visuals because of an internal policy.

 

Anyone knows a way of defining this set of properties but on a specific visual name?

        "card": {
            "*": {
                "labels": [
                    {
                        "color": { "solid": { "color": "#00483C" } },
                        "fontSize": 24,
                        "fontFamily": "Segoe UI Bold"
                    }
                ],
                "categoryLabels": [
                    {
                        "show": true,
                        "color": { "solid": { "color": "#00483C" } },
                        "fontSize": 10,
                        "fontFamily": "Segoe UI Semibold"
                    }
                ],
                "wordWrap": [
                    {
                        "show": true
                    }
                ],
                "background": [
                    {
                        "show": true,
                        "color": {
                            "solid": {
                                "color": "#E1F4F0"
                            }
                        },
                        "transparency": 0
                    }
                ]
            }
        },

 

The background propety would be set to "show: false" instead of the default code you see here. 

1 REPLY 1
MFelix
Super User
Super User

Hi @FireFighter1017 ,

 

The Theme file is the standard definitions for you visuals you cannot set a specific color based on the values you have on your visuals (title, fields values, etc) since the theme is agnostic from the model. You need to change this specific card manually.


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors