web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / the actual output I re...
Power Automate
Unanswered

the actual output I receive does not reflect the styles

(0) ShareShare
ReportReport
Posted on by

Hi Team,

 

I am generating a notification message using a script (HTML / Adaptive Card / message payload) and applying custom styles (background color, fonts, layout, buttons, etc.).

 

However, the actual output I receive does not reflect the styles I applied. Instead, it renders in a default/light theme format (see first screenshot), while I am expecting an output similar to the styled version (see second screenshot).

 

What I am trying to achieve:

 

  •  

    Styled notification card (dark background, custom button styling, proper spacing)


  •  

    Consistent rendering across the platform



  •  
 

What is happening instead:

 

  •  

    Styles are ignored or overridden


  •  

    Message renders with default formatting only



  •  
 

Questions:

 

  1.  

    Are there any style limitations or restrictions for messages/cards in this platform?


  2.  

    Does the platform strip or override custom CSS/styles?


  3.  

    Is there a recommended way (e.g., Adaptive Cards schema, supported properties) to achieve this exact UI?


  4.  

    Are themes (light/dark) controlled by the client rather than the message itself?



  5.  
 

I’ve attached screenshots of the current output vs expected output for reference.

 

Any guidance or best practices would be greatly appreciated.

Categories:
I have the same question (0)
  • Power Platform 1919 Profile Picture
    2,254 Super User 2026 Season 1 on at
    Hi ,
    In Microsoft Teams, custom CSS/HTML styles are intentionally limited. Teams sanitizes HTML and strips unsupported styles, so background colors, fonts, and layout overrides you include in a payload usually don’t apply. Adaptive Cards don’t support arbitrary CSS either. Styling is driven by the Adaptive Card schema and the host’s theming rules, not by custom CSS you send, and Teams controls light/dark themes on the client side. To get styled UI, use supported Adaptive Card properties (containers, text styles, spacing, accent colors) and test in the Teams client because themes and rendering differ by platform.
     
    Here’s the official reference on Teams card formatting and limitations:

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 377

#2
11manish Profile Picture

11manish 279

#3
David_MA Profile Picture

David_MA 234 Super User 2026 Season 1

Last 30 days Overall leaderboard