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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Under review by Community Managers

Under review

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

Content blocks and dark mode in emails

Posted on by

Hi,

 

I’ve created several content blocks in D365 CRM for email use. Our brand relies heavily on black and white, and initially the emails adjusted correctly when opened in light or dark mode.

At some point, some of the content blocks stopped adapting to dark mode, even though I haven’t made any changes to the blocks or the code. I’ve attached images showing how it worked before and how it looks now.

Does anyone know how emails sent from D365 CRM handle light and dark mode in clients like Outlook and Gmail?

 

Here is the head and style for a content block:

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="referrer" content="never">
<meta type="xrm/designer/setting" name="type" value="marketing-designer-content-editor-document">
<meta type="xrm/designer/setting" name="layout-editable" value="marketing-designer-layout-editable">
<meta type="xrm/designer/setting" name="font-family" value="Verdana, Arial, sans-serif" datatype="font"
    label="Font Family">
<meta type="xrm/designer/setting" name="body-text-size" value="14px" datatype="text" label="Body Font Size">
<meta type="xrm/designer/setting" name="body-text-color" value="#000" datatype="color" label="Body Text Color">
 
<style>
    body {
        font-family:
            /* @font-family */
            Verdana,
            /* @font-family */
            Arial,
            /* @font-family */
            sans-serif
            /* @font-family */
        ;
        font-size:
            /* @body-text-size */
            14px
            /* @body-text-size */
        ;
        color:
            /* @body-text-color */
            #000
            /* @body-text-color */
        ;
    }
 
    p {
        margin: 0px;
        padding: 0px;
        mso-line-height-rule: at-least;
    }
 
    p img {
        max-width: 100%;
    }
 
    a {
        text-decoration: none;
    }
</style>
Screenshot 2026-0...

Your file is currently under scan for potential threats. Please wait while we review it for any viruses or malicious content.

Helpful resources

News and Announcements

Season of Giving Solutions is Here!

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Pallavi Phade Profile Picture

Pallavi Phade 101

#2
Tom_Gioielli Profile Picture

Tom_Gioielli 66 Super User 2025 Season 2

#3
TAHER Mehdi Profile Picture

TAHER Mehdi 58

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans