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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors