Add dark mode styling to your HTML
Posted: Sun Dec 22, 2024 4:42 am
Dark mode settings are automatically applied to your email design. Whether you have prepared or not, your email will be seen in dark mode. But, there is a difference between an email forced into dark mode and an email that facilitates dark mode.
You can facilitate dark mode in the following ways:
Include ‘color-scheme’ meta cambodia phone number data in your tag
<meta name=”color-scheme” content=”light dark”>
<meta name=”supported-color-schemes” content=”light dark”>
Customise dark mode styling for @media ‘prefers-color-scheme: dark’. Here you can add CSS to show or hide content and change font colours. You should also include dark mode-only styles within the HTML itself.
Is dark mode the same across email clients?
That would be too easy.
As always, there are different quirks between the various email clients. Some fully invert colours whilst others partially invert. Some invert media files whereas others don’t.
This means that creating a basic dark mode email template requires substantial testing across all email clients. Luckily, comprehensive Litmus email testing is available for Pardot (MCAE) on Plus & Enterprise plans. Testing is also available on Marketing Cloud accounts Enterprise plans.
Pro tip: Prioritise the email clients the majority of your prospects use are rendering perfectly. But don’t completely overlook those that are less often used.
Pardot & Marketing Cloud dark mode email templates
For some inspiration, here’s one of the custom templates we created for our client, Connor Group, in their Pardot account.
Connor Group dark mode email template
Need a hand with email templates for dark mode?
We get it. Editing your templates for dark mode is another to-do in your long list of tasks - and it’s fairly technical too. It’s why marketers often come to us for bespoke Pardot and Marketing Cloud email templates. Our specialist team of developers has been building them for years and is well versed in dark mode optimisation.
You can browse our library of readymade Pardot email templates online or get in touch to arrange a custom template. We can work with a design you provide or take care of this for you too!
You can facilitate dark mode in the following ways:
Include ‘color-scheme’ meta cambodia phone number data in your tag
<meta name=”color-scheme” content=”light dark”>
<meta name=”supported-color-schemes” content=”light dark”>
Customise dark mode styling for @media ‘prefers-color-scheme: dark’. Here you can add CSS to show or hide content and change font colours. You should also include dark mode-only styles within the HTML itself.
Is dark mode the same across email clients?
That would be too easy.
As always, there are different quirks between the various email clients. Some fully invert colours whilst others partially invert. Some invert media files whereas others don’t.
This means that creating a basic dark mode email template requires substantial testing across all email clients. Luckily, comprehensive Litmus email testing is available for Pardot (MCAE) on Plus & Enterprise plans. Testing is also available on Marketing Cloud accounts Enterprise plans.
Pro tip: Prioritise the email clients the majority of your prospects use are rendering perfectly. But don’t completely overlook those that are less often used.
Pardot & Marketing Cloud dark mode email templates
For some inspiration, here’s one of the custom templates we created for our client, Connor Group, in their Pardot account.
Connor Group dark mode email template
Need a hand with email templates for dark mode?
We get it. Editing your templates for dark mode is another to-do in your long list of tasks - and it’s fairly technical too. It’s why marketers often come to us for bespoke Pardot and Marketing Cloud email templates. Our specialist team of developers has been building them for years and is well versed in dark mode optimisation.
You can browse our library of readymade Pardot email templates online or get in touch to arrange a custom template. We can work with a design you provide or take care of this for you too!