{"id":1202,"date":"2022-03-18T10:57:41","date_gmt":"2022-03-18T10:57:41","guid":{"rendered":"http:\/\/www.southampton.ac.uk\/blog\/digitalteam\/?p=1202"},"modified":"2022-03-18T14:41:35","modified_gmt":"2022-03-18T14:41:35","slug":"how-to-resolve-issues-with-email-dark-mode","status":"publish","type":"post","link":"https:\/\/www.southampton.ac.uk\/blog\/digitalteam\/2022\/03\/18\/how-to-resolve-issues-with-email-dark-mode\/","title":{"rendered":"How to resolve issues with email dark mode"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1207\" src=\"https:\/\/www.southampton.ac.uk\/blog\/wp-content\/uploads\/sites\/27\/2022\/03\/Dark-Mode-Hero-300x183.jpg\" alt=\"With the introduction of dark mode (night mode, dark theme), users can adopt a dark system-wide appearance\" width=\"651\" height=\"396\" srcset=\"https:\/\/www.southampton.ac.uk\/blog\/wp-content\/uploads\/sites\/27\/2022\/03\/Dark-Mode-Hero-300x183.jpg 300w, https:\/\/www.southampton.ac.uk\/blog\/wp-content\/uploads\/sites\/27\/2022\/03\/Dark-Mode-Hero-768x468.jpg 768w, https:\/\/www.southampton.ac.uk\/blog\/wp-content\/uploads\/sites\/27\/2022\/03\/Dark-Mode-Hero.jpg 800w\" sizes=\"auto, (max-width: 651px) 100vw, 651px\" \/><\/p>\n<h4><strong>What is dark mode?<\/strong><\/h4>\n<p>With the introduction of dark mode (night mode, dark theme), users can adopt a dark system-wide appearance. The dark mode inverts the device\u2019s display to a light-coloured typography and UX elements on a dark background.<\/p>\n<p>There are good reasons why users choose to set their devices to dark mode:<\/p>\n<ul>\n<li>it\u2019s easier on the eyes, reducing digital eye strain.<\/li>\n<li>it reduces screen brightness, saving your battery life.<\/li>\n<li>it can improve content legibility, making it easier to consume content.<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1211\" src=\"https:\/\/www.southampton.ac.uk\/blog\/wp-content\/uploads\/sites\/27\/2022\/03\/Dark-mode-Usage-Stats.jpg\" alt=\"Gen Z spend 5 hours per day on mobile, most mobile users adopt dark mode to combat eye strain\" width=\"601\" height=\"254\" srcset=\"https:\/\/www.southampton.ac.uk\/blog\/wp-content\/uploads\/sites\/27\/2022\/03\/Dark-mode-Usage-Stats.jpg 800w, https:\/\/www.southampton.ac.uk\/blog\/wp-content\/uploads\/sites\/27\/2022\/03\/Dark-mode-Usage-Stats-300x127.jpg 300w, https:\/\/www.southampton.ac.uk\/blog\/wp-content\/uploads\/sites\/27\/2022\/03\/Dark-mode-Usage-Stats-768x324.jpg 768w\" sizes=\"auto, (max-width: 601px) 100vw, 601px\" \/><br \/>\n<span style=\"font-size: 10pt\">Caption: Gen Z use dark mode to combat eye strain<\/span><\/p>\n<p>Gen Z, our target audience, are the first digital natives, constantly connected online and spending over 5 hours a day on their phones*. With so much time spent online, they use dark mode to relieve eye strain. It\u2019s not just this age group adopting this setting, 82% of all mobile users now have the setting activated**.<\/p>\n<p>The dark mode setting is available on mobile, tablet, and PC. All users can activate the setting system-wide or through an application. This includes:<\/p>\n<ul>\n<li>PC and laptop operating systems \u2013 Windows and Apple macOS<\/li>\n<li>Mobile devices \u2013 Android and Apple iOS<\/li>\n<li>Email Clients \u2013 Gmail, Apple Mail, Outlook<\/li>\n<\/ul>\n<p>With such high adoption of this setting, we need to ensure our email communications are readable, on-brand and error-free. Basically, we need to ensure we\u2019re meeting user needs in their own context, in the right place, at the right time. So, we decided to look into it.<\/p>\n<h4><strong>What are the challenges in fixing dark mode setting?<\/strong><\/h4>\n<p>There are a few key challenges in implementing dark mode. These are:<\/p>\n<ul>\n<li>each email client and the operating system will render emails differently.<\/li>\n<li>even the age of the device can cause a problem.<\/li>\n<\/ul>\n<p>To combat it, the best way to test and check emails, is through an email optimisation tool, like <a href=\"https:\/\/www.litmus.com\">Litmus<\/a>. This resource performs tests on over 70 email clients, including dark mode simulations.<\/p>\n<p>An email may look great with the dark mode setting turned off, but tests using Litmus indicate that elements of the University email template are affected in dark mode.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1229\" src=\"https:\/\/www.southampton.ac.uk\/blog\/wp-content\/uploads\/sites\/27\/2022\/03\/Dark-Mode-On-Off-Example-1.jpg\" alt=\"When dark mode is turned on, colours seem to invert causing readability issues\" width=\"601\" height=\"374\" srcset=\"https:\/\/www.southampton.ac.uk\/blog\/wp-content\/uploads\/sites\/27\/2022\/03\/Dark-Mode-On-Off-Example-1.jpg 800w, https:\/\/www.southampton.ac.uk\/blog\/wp-content\/uploads\/sites\/27\/2022\/03\/Dark-Mode-On-Off-Example-1-300x187.jpg 300w, https:\/\/www.southampton.ac.uk\/blog\/wp-content\/uploads\/sites\/27\/2022\/03\/Dark-Mode-On-Off-Example-1-768x478.jpg 768w\" sizes=\"auto, (max-width: 601px) 100vw, 601px\" \/><br \/>\n<span style=\"font-size: 10pt\">Caption: The difference between dark mode on and off, colours invert<\/span><\/p>\n<p>The image above details two screens with the dark mode off and on. The screen on the left displays the email with the dark mode setting turned off. The screen on the right depicts the same email in dark mode. Here key brand colours are inverted, causing the email to be displayed incorrectly.<\/p>\n<p>Our university is not alone, brands are affected too. Logos, text and call-to-action buttons seem to disappear. This isn\u2019t the outcome any brands wish for when the purpose of an email is to engage with our customers, community and so on.<\/p>\n<h4><strong>So, what do we do? Develop a plan for success<\/strong><\/h4>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1209\" src=\"https:\/\/www.southampton.ac.uk\/blog\/wp-content\/uploads\/sites\/27\/2022\/03\/Dark-Mode-Process-Improvement-Plan.jpg\" alt=\"A process improvement plan, Step 1 Recognise issue, Step 2 Identify Step, 3 Redesign, Step 4 Communicate Step, 5 Implement Step, 6 Review\" width=\"600\" height=\"218\" srcset=\"https:\/\/www.southampton.ac.uk\/blog\/wp-content\/uploads\/sites\/27\/2022\/03\/Dark-Mode-Process-Improvement-Plan.jpg 800w, https:\/\/www.southampton.ac.uk\/blog\/wp-content\/uploads\/sites\/27\/2022\/03\/Dark-Mode-Process-Improvement-Plan-300x109.jpg 300w, https:\/\/www.southampton.ac.uk\/blog\/wp-content\/uploads\/sites\/27\/2022\/03\/Dark-Mode-Process-Improvement-Plan-768x278.jpg 768w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><br \/>\n<span style=\"font-size: 10pt\">Caption: A process improvement plan setting direction of work<\/span><\/p>\n<p>Before any work is undertaken, we developed a process improvement plan to:<\/p>\n<ul>\n<li>outline the purpose of the work,<\/li>\n<li>set direction, and<\/li>\n<li>break the workload into smaller, more manageable stages.<\/li>\n<\/ul>\n<p>First, we need to recognise the main issues, understand their impact, and identify who could be affected.<\/p>\n<h4><strong>Who is our audience and what mail platforms and devices do they use?<\/strong><\/h4>\n<p>Our standard email template is at the heart of our digital communications. We use the template to build engaging emails to prospective students, to communicate with enrolled students and staff as well as other groups such as our alumni community. Each audience interacts with emails differently.<\/p>\n<p>It is important to understand which email client, and platform our target audience uses. Otherwise, we could focus on the wrong technology.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1210\" src=\"https:\/\/www.southampton.ac.uk\/blog\/wp-content\/uploads\/sites\/27\/2022\/03\/Dark-Mode-Target-Audience.jpg\" alt=\"Target audience - Enquiry use mobile devices to read emails, Enrolled students use mobile devices to read emails, Staff use a mixture of mobile and desktop\" width=\"600\" height=\"375\" srcset=\"https:\/\/www.southampton.ac.uk\/blog\/wp-content\/uploads\/sites\/27\/2022\/03\/Dark-Mode-Target-Audience.jpg 800w, https:\/\/www.southampton.ac.uk\/blog\/wp-content\/uploads\/sites\/27\/2022\/03\/Dark-Mode-Target-Audience-300x188.jpg 300w, https:\/\/www.southampton.ac.uk\/blog\/wp-content\/uploads\/sites\/27\/2022\/03\/Dark-Mode-Target-Audience-768x480.jpg 768w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><br \/>\n<span style=\"font-size: 10pt\">Caption: The University\u2019s main target audiences and how they interact with emails<\/span><\/p>\n<p>When analysing our target audience, we identified three email clients (Apple Mail, Gmail, and Outlook). Whilst younger recipients prefer mobile devices, staff and alumni prefer a mixture of mobile and desktop.<\/p>\n<h4><strong>Pinpoint the crucial issues<\/strong><\/h4>\n<p>To determine the source of the problem, we carried out extensive testing using Litmus to identify the problem.<\/p>\n<p>Inconsistencies between email clients and operating systems provide different results in dark mode. Most notably colours render differently. Whilst most images are unaffected, Gmail inverts smaller images such as small social media logos.<\/p>\n<p>The diagram below details which operating system and email client combinations experience problems.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1205\" src=\"https:\/\/www.southampton.ac.uk\/blog\/wp-content\/uploads\/sites\/27\/2022\/03\/Dark-Mode-Client-Test-Results.jpg\" alt=\"Three email clients tested - Apple Mail has issues in dark mode, Gmail only iOS has an issue in dark mode, Outlook Windows and iOS has an issue in dark mode\" width=\"600\" height=\"496\" srcset=\"https:\/\/www.southampton.ac.uk\/blog\/wp-content\/uploads\/sites\/27\/2022\/03\/Dark-Mode-Client-Test-Results.jpg 800w, https:\/\/www.southampton.ac.uk\/blog\/wp-content\/uploads\/sites\/27\/2022\/03\/Dark-Mode-Client-Test-Results-300x248.jpg 300w, https:\/\/www.southampton.ac.uk\/blog\/wp-content\/uploads\/sites\/27\/2022\/03\/Dark-Mode-Client-Test-Results-768x635.jpg 768w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><br \/>\n<span style=\"font-size: 10pt\">Caption: The results from extensive testing to identify which email clients and operating systems experience a problem in dark mode<\/span><\/p>\n<h4><strong>What is the biggest problem?<\/strong><\/h4>\n<p>The dark mode function inverts colours. All colours coded in the email can be affected. Colours of banners, call-to-action buttons, and hyperlinks, shift in colour.<\/p>\n<p>Like all brands, the University provides a range of colours to create a visual impact and to distinguish the brand. But would these colours be affected by the dark mode colour shift?<\/p>\n<p>The answer is yes. The chart below depicts what happens to our brand colours in dark mode and across several email clients. The result looks like a piece of modern art.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1204\" src=\"https:\/\/www.southampton.ac.uk\/blog\/wp-content\/uploads\/sites\/27\/2022\/03\/Dark-Mode-Brand-Colour-Test.jpg\" alt=\"A chart showing all brands colours and how dark mode affects their rendering in emails\" width=\"600\" height=\"249\" srcset=\"https:\/\/www.southampton.ac.uk\/blog\/wp-content\/uploads\/sites\/27\/2022\/03\/Dark-Mode-Brand-Colour-Test.jpg 1761w, https:\/\/www.southampton.ac.uk\/blog\/wp-content\/uploads\/sites\/27\/2022\/03\/Dark-Mode-Brand-Colour-Test-300x125.jpg 300w, https:\/\/www.southampton.ac.uk\/blog\/wp-content\/uploads\/sites\/27\/2022\/03\/Dark-Mode-Brand-Colour-Test-768x319.jpg 768w, https:\/\/www.southampton.ac.uk\/blog\/wp-content\/uploads\/sites\/27\/2022\/03\/Dark-Mode-Brand-Colour-Test-1024x425.jpg 1024w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><br \/>\n<span style=\"font-size: 10pt\">Caption: This may look like modern art, but is the colour shift of our brand colours in dark mode<\/span><\/p>\n<p>Where the brand colour Marine 1 is utilised in our campaign emails, the colour will become lighter in dark mode. Whilst the lighter Marine 2 will become darker. This colour shift will affect the effectiveness of any button or hyperlink.<\/p>\n<p>The challenge is to choose colours less affected by the colour shift for each part of our email template. With the help of Steve Wise, another member of the Digital User Experience team, we reviewed the test results to identify how to resolve the issues.<\/p>\n<h4><strong>Redesign of the email template<\/strong><\/h4>\n<p>Our testing identified that simpler email template designs are the best for replication in dark mode. The areas of improvement included:<\/p>\n<ul>\n<li>simplify the template design,<\/li>\n<li>ensure template is accessible and renders through all email clients,<\/li>\n<li>remove background colour in content blocks,<\/li>\n<li>introduce a single image replacing the header banner and logo,<\/li>\n<li>simplified footer,<\/li>\n<li>develop different social media icons<\/li>\n<\/ul>\n<h4><strong>Creating the code to target dark mode<\/strong><\/h4>\n<p>The coding has been a challenge. Not all email clients work the same way. Each element needs specific code for each email client and operating system.<\/p>\n<p>Using the Litmus system, each piece of code was tested. Some worked, most did not. We conducted a total of 3,000 email simulations before we created a stable working template.<\/p>\n<p>We developed separate code to create the email style, CSS, to target specific operating systems and email clients:<\/p>\n<p style=\"padding-left: 40px\"><span style=\"font-family: 'courier new', courier, monospace\">@media (prefers-color-scheme:dark)<\/span> controls elements for Apple Mail and iOS.<\/p>\n<p style=\"padding-left: 40px\"><span style=\"font-family: 'courier new', courier, monospace\">[data-ogsc]<\/span> controls elements for Android and Outlook.<\/p>\n<p>Specific code targeting Microsoft Outlook, ensures text inverts correctly and is readable on a dark background. Without this inclusion, Outlook may not invert text correctly.<\/p>\n<p>The key with any development is to ensure that the email looks and renders the same through all email clients.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1228\" src=\"https:\/\/www.southampton.ac.uk\/blog\/wp-content\/uploads\/sites\/27\/2022\/03\/Dark-Mode-Email-New-Template-1.jpg\" alt=\"The new email template corrects dark mode issues\" width=\"600\" height=\"389\" srcset=\"https:\/\/www.southampton.ac.uk\/blog\/wp-content\/uploads\/sites\/27\/2022\/03\/Dark-Mode-Email-New-Template-1.jpg 800w, https:\/\/www.southampton.ac.uk\/blog\/wp-content\/uploads\/sites\/27\/2022\/03\/Dark-Mode-Email-New-Template-1-300x194.jpg 300w, https:\/\/www.southampton.ac.uk\/blog\/wp-content\/uploads\/sites\/27\/2022\/03\/Dark-Mode-Email-New-Template-1-768x497.jpg 768w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><br \/>\n<span style=\"font-size: 10pt\">Caption: The new University email template renders correctly in dark mode, thanks to some extra code<\/span><\/p>\n<h4><strong>Hyperlinks and accessibility<\/strong><\/h4>\n<p>Hyperlinks provide a link to external content and are identifiable by underlined text. This underline can cause readability issues as it cuts through any text with a dropped tail (g, j, p, q, and y).<\/p>\n<p>Through code, we can remove the underline and replace it with a padded borderline below the text.<\/p>\n<p>During testing, we found that Outlook removes this border and would need more code to insert the underline to hyperlink text. More code is not better.<\/p>\n<p>The decision here is to retain the standard underline to hyperlinks. It works through all email clients and is a simple solution.<\/p>\n<h4><strong>Implementation<\/strong><\/h4>\n<p>The email template will be used in a broad range of CRM applications (Microsoft Dynamics, Connect, Mailchimp), each requiring separate templates. Depending upon the system, we will implement new code to allow the template to function correctly in the CRM system.<\/p>\n<h4><strong>In Summary<\/strong><\/h4>\n<p>We are pleased with the progress to redevelop our template, to better address the challenges of dark mode compatibility.<\/p>\n<p>We\u2019re looking forward to seeing how our users will respond to the new template as we start to integrate it into our upcoming campaigns and wider communication.<\/p>\n<p><strong>Many thanks to all my contributors: Doug, Steve, Ayala and Jonny.<\/strong><\/p>\n<h4>Links to articles and further resources:<\/h4>\n<ul>\n<li><a href=\"https:\/\/99firms.com\/blog\/generation-z-statistics\/%23gref\"><em>Generation Z Statistics<\/em><\/a><em> by 99Content *<\/em><\/li>\n<li><a href=\"https:\/\/nighteye.app\/dark-mode\/\"><em>What is dark mode?<\/em><\/a><em> by Night Eye **<\/em><\/li>\n<li><a href=\"https:\/\/www.litmus.com\/blog\/the-ultimate-guide-to-dark-mode-for-email-marketers\/\"><em>The Ultimate Guide to Dark Mode for Email Marketers<\/em><\/a><em> by Litmus<\/em><\/li>\n<li><a href=\"https:\/\/www.businessofapps.com\/news\/a-look-at-gen-z-mobile-behaviours-64-of-mobile-users-are-always-connected\/\"><em>A look at Gen Z mobile behaviours<\/em><\/a><em> by Business of Apps<\/em><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>What is dark mode? With the introduction of dark mode (night mode, dark theme), users can adopt a dark system-wide appearance. The dark mode inverts the device\u2019s display to a light-coloured typography and UX elements on a dark background. There are good reasons why users choose to set their devices to dark mode: it\u2019s easier [&hellip;]<\/p>\n","protected":false},"author":256,"featured_media":1207,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"footnotes":""},"categories":[23,17,10],"tags":[32,34,33],"class_list":["post-1202","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-accessibility","category-design","category-show-and-tell","tag-dark-mode","tag-design","tag-email"],"jetpack_featured_media_url":"https:\/\/www.southampton.ac.uk\/blog\/wp-content\/uploads\/sites\/27\/2022\/03\/Dark-Mode-Hero.jpg","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/paLsBb-jo","_links":{"self":[{"href":"https:\/\/www.southampton.ac.uk\/blog\/digitalteam\/wp-json\/wp\/v2\/posts\/1202","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.southampton.ac.uk\/blog\/digitalteam\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.southampton.ac.uk\/blog\/digitalteam\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.southampton.ac.uk\/blog\/digitalteam\/wp-json\/wp\/v2\/users\/256"}],"replies":[{"embeddable":true,"href":"https:\/\/www.southampton.ac.uk\/blog\/digitalteam\/wp-json\/wp\/v2\/comments?post=1202"}],"version-history":[{"count":23,"href":"https:\/\/www.southampton.ac.uk\/blog\/digitalteam\/wp-json\/wp\/v2\/posts\/1202\/revisions"}],"predecessor-version":[{"id":1235,"href":"https:\/\/www.southampton.ac.uk\/blog\/digitalteam\/wp-json\/wp\/v2\/posts\/1202\/revisions\/1235"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.southampton.ac.uk\/blog\/digitalteam\/wp-json\/wp\/v2\/media\/1207"}],"wp:attachment":[{"href":"https:\/\/www.southampton.ac.uk\/blog\/digitalteam\/wp-json\/wp\/v2\/media?parent=1202"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.southampton.ac.uk\/blog\/digitalteam\/wp-json\/wp\/v2\/categories?post=1202"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.southampton.ac.uk\/blog\/digitalteam\/wp-json\/wp\/v2\/tags?post=1202"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}