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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
SondreHaugen
New Member

Theme template: cardVisual individual toggle not working

Hi,

I am building a Power BI theme template and have run into what appears to be a bug with the new cardVisual and individual padding. The goal is to apply individual outer margins to all card visuals via the theme JSON. The margins themselves (topOuterMargin, rightOuterMargin, etc.) are schema-validated and apply correctly, but only when the "Individual padding" toggle is manually enabled in the format pane first. Through the theme alone, the toggle does not activate, so the margins have no visible effect.

 

I have tried setting paddingIndividual in the following ways:

  • "paddingIndividual": true -> passes validation, but the toggle remains off and margins are ignored
  • "paddingIndividual": 1 and "paddingIndividual": { "value": true } -> both throw a validation error: must be boolean (type; matching schema #/allOf/1/properties/layout/items/properties/paddingIndividual/type)

So Power BI validates the boolean correctly, reads the value, but does not honour it during rendering. Has anyone found a workaround, or is this a known bug?

Edit: I also have the same problem with borders for the cards (not the borders for the visual itself, but for the cards within the visual):

 

My code looks like this:

{
    "visualStyles": {
        "cardVisual": {
                "*": {
                   "layout": [{
                        "topOuterMargin": 0,
                        "rightOuterMargin": 0,
                        "leftOuterMargin": 0,
                        "bottomOuterMargin": 0,
                        "paddingIndividual": true
                    }],
                    "outline": [{
                        "lineColor": { "solid": { "color": "#CCCCCC"}},
                        "show": true,
                        "weight": 1
                     }]
                }
            }
      }
}






1 ACCEPTED SOLUTION
DanieleUgoCopp
Solution Supplier
Solution Supplier

Hello
this really looks like a Power BI bug

As a workaround, you could try creating one “template” card manually with Individual padding enabled, then duplicate it across reports, or save it inside a PBIX template instead of relying only on the theme JSON. Same for the inner card borders, the outline settings seem partially supported but inconsistent.

 

Best regards,
Daniele

View solution in original post

2 REPLIES 2
v-ssriganesh
Community Support
Community Support

Hi @SondreHaugen,

Thank you for posting your query in the Microsoft Fabric Community Forum, and thanks to @DanieleUgoCopp for sharing valuable insights.

 

Could you please confirm if your query has been resolved by the provided solutions? This would be helpful for other members who may encounter similar issues.

 

Thank you for being part of the Microsoft Fabric Community.

 

DanieleUgoCopp
Solution Supplier
Solution Supplier

Hello
this really looks like a Power BI bug

As a workaround, you could try creating one “template” card manually with Individual padding enabled, then duplicate it across reports, or save it inside a PBIX template instead of relying only on the theme JSON. Same for the inner card borders, the outline settings seem partially supported but inconsistent.

 

Best regards,
Daniele

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.