You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Menu item toggle for "Lights off" or "Darkmode" (default off)
This could be done with a toggle class similar to the rest of the "email tools" methods:
Class applied to body: <body class="darkMode"> would be toggle ON html, body, th, td { background: #2d2d2d!important;} becomes: .darkMode .darkMode th, darkMode td { background: #2d2d2d!important;}
HTML in the email:
Header swaps for dark mode friendly images:
CTA glitches, for iOS Outlook Apps ONLY
Need for having a bespoke class on some CTAs when using a light background with black text:
iOS Outlook App on iPhone needs to be babysat as it ignores the <a> call in CSS as: Used this in iDM email: **
The layout was already dark mode friendly so didn't need to do the above code fixes
<!-- Outlook (Webmail-darkmode, iOS-darkmode) -->
<style type="text/css">
[data-ogsc] .footer a,
[data-ogsc] .darkM { color: #feffff!important; }
</style>
You have to put babysit class on CTAs<a class="darkM"> directly or this happens:
Maybe there is a better solution to ensure the CSS is picked up. Plan for testing more options.
Create a new menu item for "Lights off" or "Darkmode"
Use pre-existing media query that gets adapted to be inherited for forced emulated dark mode
Describe the solution you'd like
Apple iOS Mail
Apple iOS Outlook
Maybe Samsung Dark mode will have to research which Apps support this
Steps it should do:
CSS in the email:
Existing CSS in the email that needs to be DOM manipulated to allow a dark mode on off status:
Menu item toggle for "Lights off" or "Darkmode" (default off)
This could be done with a toggle class similar to the rest of the "email tools" methods:
Class applied to body:
<body class="darkMode">
would be toggle ONhtml, body, th, td { background: #2d2d2d!important;}
becomes:
.darkMode .darkMode th, darkMode td { background: #2d2d2d!important;}
HTML in the email:
Header swaps for dark mode friendly images:
Logos:
Slant removals:
CTA glitches, for iOS Outlook Apps ONLY
Need for having a bespoke class on some CTAs when using a light background with black text:
iOS Outlook App on iPhone needs to be babysat as it ignores the
<a>
call in CSS as:Used this in iDM email: **
The layout was already dark mode friendly so didn't need to do the above code fixes
You have to put babysit class on CTAs
<a class="darkM">
directly or this happens:Maybe there is a better solution to ensure the CSS is picked up. Plan for testing more options.
Latest Currys Skeleton with Darkmode:
Footer-with-darkmode.zip
Further reading:
https://nshipster.com/dark-mode/
More Glitches to review:
Reference: Samsung Outlook App DarkMode
Reference: Samsung Outlook App Light
Mode
The text was updated successfully, but these errors were encountered: