このページ:メールクライアントでのダークモードの処理方法、E メールデザイナーでのカスタムダークモード設定のプレビューおよび定義方法、一貫性のあるレンダリングのベストプラクティスについて説明します。
メールをデザインする際に、Journey Optimizer E メールデザイナーを使用すると、ダークモードビューに切り替えることができます。
このダークモードビューでは、ダークモードがオンの場合にサポートしているメールクライアントに表示される特定のカスタム設定を定義することもできます。
ダークモードとは what-is-dark-mode
様々なメールクライアントでダークモードがレンダリングされる方法は複雑です。 まず、ダークモードを定義します。
ダークモードを使用すると、サポートしているメールクライアントとアプリで、メールの背景を暗くし、テキスト、ボタン、他の UI 要素を明るい色で表示できます。 目の疲れを軽減し、バッテリー寿命を節約し、低光量環境での読みやすさを向上させ、より快適な視聴体験を実現するのに役立ちます。
これは、主要なオペレーティングシステムとアプリ全体で高まるトレンドとして、すべてのユーザーにとってコンテンツが読みやすく視覚的に魅力的であることを確保するために、最新のメールデザインでは重要な考慮事項になっています。
ガードレール guardrails
ダークモードのレンダリングに関する期待は、様々なメールクライアントによって適用方法が大きく異なる可能性があるので、慎重に考慮する必要があります。
Journey Optimizer E メールデザイナーでダークモードを使用する前に、メインのメールクライアントでの処理方法を理解することが重要です。 区別するケースには、次の 3 つがあります。
ダークモードをサポートしていないクライアント not-supporting
次のような一部のメールクライアントでは、この機能をまったくサポートしていません。
- Yahoo! メール
- AOL
E メールデザイナーでダークモードのカスタム設定を定義したかどうかに関係なく、これらのメールクライアントではダークモードのレンダリングを表示しません。
独自のダークモードを適用しているクライアント default-support
一部のメールクライアントでは、受信したすべてのメールに対して、独自のデフォルトのダークモードを体系的に適用します。 色、背景、画像などはメールクライアント固有のダークモード設定で自動的に調整されるので、外部からの変更はできません。
これらのクライアントの例:
- Gmail(デスクトップ Web メール、iOS、Android、モバイル Web メール)
- Outlook Windows
- Outlook Windows メール
この場合、電子メールDesignerでカスタムダークモード設定を定義すると、これらの設定は電子メールクライアント設定で上書きされます。
これらのメールクライアントはダークモードを処理しますが、特定のダークモードデザインはレンダリングされないことを理解することが重要です。
カスタムダークモードをサポートしているクライアント custom-support
他のメールクライアントには、@media (prefers-color-scheme: dark) クエリを使用してカスタムダークモードをレンダリングするオプションが用意されています。これは、Journey Optimizer E メールデザイナーで使用される方法です。
このオプションを処理する主なクライアントのリストを以下に示します。
- Apple メール macOS
- Apple メール iOS
- Outloook macOS
- Outlook.com
- Outlook iOS
- Outlook Android
この場合、E メールデザイナーで定義した特定の設定が表示されます。
ただし、メールクライアントごとに制限が一部適用される場合があります。 例えば、Apple Mail 16 (macOS 13)などの一部のクライアントでは、画像がメールコンテンツに存在する場合、ダークモードは生成されません。
最適な結果を得るには、ターゲットにしているメールクライアントでコンテンツをテストします。 各クライアントの最終結果にできるだけ近いシミュレーションを表示するには、E メールデザイナーで「メールレンダリング」オプションを使用します。
E メールデザイナーでのダークモード dark-mode-email-designer
E メールデザイナーでのダークモードに関しては、考慮すべき 2 つの側面があります。
- サポートされているほとんどのメールクライアントで、デフォルトのダークモードがどのようにレンダリングされるかをプレビューできます。 詳細情報
- サポートされているメールクライアントのデフォルト設定を上書きする場合は、編集中のメールに適用するカスタムダークモード設定を定義できます。 詳細情報
デフォルトのダークモードのプレビュー preview-dark-mode
E メールデザイナーでダークモードにアクセスし、デフォルトのダークモード設定のプレビューを取得するには、次の手順に従います。
-
E メールデザイナーのホームページで、「ゼロからデザイン」オプションを選択します。 詳細情報
-
構造とコンテンツコンポーネントをコンテンツに追加します。
-
中央のキャンバスの右上で、切替スイッチを ダークモード に切り替えます。
-
デフォルトのダークモードのプレビューが表示されます。
デフォルトでは、E メールデザイナーのダークモードのプレビューには、画像とアイコンを除くすべての要素に「フルカラー反転」カラースキームが適用されます。
つまり、明るい要素と暗い要素の領域を検出して反転させることで、明るい背景は暗く、暗いテキストは明るくなり、暗い背景は明るく、明るいテキストは暗くなります。
カスタムダークモードの定義 define-custom-dark-mode
ダークモードに切り替えたら、受信者のメールクライアントでダークモードが有効になっている場合にのみ表示されるコンテンツの特定のスタイル要素の編集を選択できます(その機能がサポートされている場合)。
E メールデザイナーのカスタムダークモードのスタイル設定を活用するには、Journey Optimizer では @media (prefers-color-scheme: dark) CSS クエリを使用します。このクエリでは、ユーザーのメールクライアントがダークモードに設定されているかどうかを検出し、メールで定義したダークテーマのデザインが適用されます。
カスタムダークモードの設定を定義するには、次の手順に従います。
-
E メールデザイナーで ダークモード プレビューに切り替えます。 方法についてはこちらを参照
-
テキスト、背景、ボタンなどのスタイル設定の色属性を編集します。
-
画像やアイコンの色は変更できませんが、特定のアセットはダークモード用にのみ定義できます。 これを行うには、任意の画像を選択します。 設定パネルの専用切替スイッチを使用して ダークモード に切り替え、別のアセットを選択します。
-
いつでもライブビューに切り替えて、様々なデバイスサイズでコンテンツがどのようにレンダリングされる可能性があるかを確認できます。 このビューから、画面上部のダークモード切替スイッチを選択すると、様々なデバイスをまたいでコンテンツのダークモードバージョンをプレビューできます。
{align="center" width="80%"}
note caution CAUTION ライブビューは、様々なデバイスサイズをまたいでレンダリングがどのように表示される可能性があるかを比較するのにデザインされた汎用プレビューです。 最終的なレンダリングは、受信者のメールクライアントによって異なる場合があります。 -
ダークモードの変更内容に問題がなければ、「コンテンツをシミュレート」をクリックして、ドロップダウンから「コンテンツをシュミレート(AEP プロファイル)」を選択し、メールレンダリングを確認します。
-
「メールをレンダリング」を選択し、Litmus アカウントに接続します。 様々なメールクライアントでの最終的なダークモードレンダリングを確認できます。 詳しくは、メールのレンダリングを参照してください。 代わりにサンプル入力データや AI 自動生成を使用してコンテンツバリエーションをテストするには、「コンテンツをシミュレート」を直接クリックします。 コンテンツバリエーションのシミュレート方法の詳細情報
note warning WARNING シミュレーションは、ダークモードでのメールの表示を高い精度で近似しますが、メールサービスプロバイダーやデバイスレベルの設定の違いにより、実際のレンダリングは異なる場合があります。
テーマでのダークモードの使用 dark-mode-themes
メールやテンプレートのコンテンツでテーマを使用する場合は、テーマレベルで直接、各カラーバリアントの個別のダークモードバージョンを定義することもできます。 詳細情報
ベストプラクティス best-practices
主要なメールクライアント間でダークモードの採用が増加するにつれて、カスタムダークモードを使用しているかどうかに関係なく、明るい環境と暗い環境の両方でメールがどのようにレンダリングされるかを考慮することが重要になります。
ダークモードでは、色、背景、画像が変更される可能性があり、場合によってはデザインの選択が上書きされることもあります。 視覚的な一貫性、アクセシビリティ、ブランドの整合性を確保するには、次に示すベストプラクティスに従ってください。
画像とロゴの最適化
-
ロゴやアイコンを透明な背景の PNG として保存し、ダークモードで白いボックスが表示されないようにします。
-
白色の背景または明るい背景がハードコードされた画像は回避します。
-
透明度がオプションでない場合は、不自然な色の反転を防ぐために、デザインでは単色の背景に画像を配置します。
背景に対する注意
-
ライトモードとダークモードの両方で読みやすくするには、テキストと背景色の間に十分なコントラストを確保します。
-
重要なコンテンツについては、背景色にのみ依存することは回避します。 一部のクライアントでは、ダークモードで背景色を上書きすることがあるので、重要な情報が表示されていることを確認します。
ダークモードでのアクセス可能なコンテンツのデザイン
-
色覚異常のある人物でも簡単に区別できる色の組み合わせを使用します。
-
明るい背景と暗い背景の両方に対してコントラストを確保するのに、ミッドトーンパレットを使用します。
-
読みやすさを向上させ、Web コンテンツアクセシビリティガイドライン(WCAG)標準を満たすには、コントラストの高いアクセシブルな色の組み合わせを使用します。 WebAIM のコントラストチェッカーなどのツールを使用して、色のコントラストを検証します。
-
読みやすさに影響を与える可能性があるため、シンなフォントは避けます。 ブランドに細いフォントが必要な場合は、ダークモードで太字にします。
-
純粋な黒色の背景に純粋な白色を使用すると、目への負担の原因となる場合があり、一部のメールクライアントにより自動的に反転される可能性があるので、これを回避します。
-
ダークモードがサポートされていない場合は、アクセシビリティに配慮したフォールバックスタイル設定を指定します。
ダークモード環境でのメールのテスト
-
問題を早期に発見するには、反転したカラースキームを使用する E メールデザイナーのダークモードのプレビューを使用します。
-
Litmus を活用した「メールのレンダリング」オプションを使用して、主要なメールクライアント(Apple メール、Gmail、Outlook)でデザインをシミュレートし、ダークモードでの色と画像の動作を確認します。
This section contains structured knowledge intended to support interpretation, retrieval, and question answering related to this topic.
For complete understanding, this information should be combined with the documentation on this page. Neither source is intended to stand alone; the page describes the feature, while this section provides additional context that helps disambiguate terminology, intent, applicability, and constraints.
- TL;DR: This page explains how email clients handle dark mode and how to preview default dark mode and define custom dark mode settings in the Journey Optimizer Email Designer.
Intents:
- Understand the three cases of email clients: clients not supporting dark mode, clients applying their own dark mode, and clients supporting custom dark mode.
- Preview how the default dark mode will render in most supporting email clients by switching the toggle to Dark mode on top right of the central canvas of the Email Designer.
- Define custom dark mode settings applying to the email you are editing, by editing styling color attributes such as text, backgrounds and button.
- Define a specific image for dark mode by selecting an image, switching to Dark mode using the dedicated toggle in the Settings pane and selecting a different asset.
- Check the dark mode version of your content across device sizes from Switch to live view, and the final dark mode rendering for various email clients with Render email.
- Define an independent dark mode version of each color variant, directly at the theme level, when you use a theme with your email or template content.
Glossary:
- Dark mode: Allows the supporting email clients and apps to display emails with darker backgrounds and lighter colors for text, buttons and other UI elements.
- Dark mode view (product-specific): The Email Designer view you switch to in order to preview the dark mode rendering and define specific custom settings, which are displayed by the supporting email clients when their dark mode is on.
- Full color invert (product-specific): The color scheme that the Email Designer dark mode preview applies by default to all elements except images and icons. It detects areas with light and dark elements and inverts them: light backgrounds become dark and dark text becomes light, whereas dark backgrounds become light and light text becomes dark.
- Custom dark mode: Specific styling elements of your content that are displayed only when dark mode is enabled in the recipient’s email client, provided the email client supports that feature.
@media (prefers-color-scheme: dark): The CSS query that Journey Optimizer uses for the Email Designer custom dark mode styling. It detects if the user’s email client is set to dark mode and applies the dark-themed design that was defined in your email.- Live view (product-specific): A generic preview designed to compare how the rendering might look across various device sizes. From this view, the Dark mode toggle on top of the screen previews the dark mode version of your content across the different devices.
- Simulate content (AEP profiles) (product-specific): The entry you select from the Simulate content dropdown to check email rendering, before selecting Render email and connecting to your Litmus account.
- Simulate content (product-specific): Selected directly, it lets you test content variations with sample input data or AI auto-generation.
- Email rendering (product-specific): The option in the Email Designer that shows a simulation that comes as close as possible to the final result for each email client.
Guardrails:
- The dark mode final rendering depends on each email client, so results can vary from one to another.
- Some email clients do not support dark mode at all, such as Yahoo!Mail and AOL. Whether you define dark mode custom settings or not in the Email Designer, these email clients never display any dark mode rendering.
- Some email clients systematically apply their own default dark mode for all emails that are received, for example Gmail (Desktop Webmail, iOS, Android, Mobile Webmail), Outlook Windows and Outlook Windows Mail. Colors, backgrounds, images, etc. are automatically adjusted with the dark mode settings specific to the email client, and no external modification is possible.
- With email clients that apply their own default dark mode, custom dark mode settings defined in the Email Designer are overridden with the email client settings: these clients handle dark mode, but your specific dark mode design will not be rendered.
- The main email clients that render custom dark mode with the
@media (prefers-color-scheme: dark)query are Apple Mail macOS, Apple Mail iOS, Outlook macOS, Outlook.com, Outlook iOS and Outlook Android. With these clients, the specific settings you define in the Email Designer should be displayed. - With email clients supporting custom dark mode, some restrictions may apply according to each email client. For example, some clients such as Apple Mail 16 (macOS 13) will not generate dark mode if images are present in the email content.
- You cannot change the colors of images and icons in dark mode, but you can define specific assets for dark mode only.
- While simulation closely approximates how emails will appear in dark mode, actual rendering may differ due to variations in email service providers or device-level settings.
Terminology:
- Canonical name: Web Content Accessibility Guidelines — Acronym: WCAG — variants: WCAG standards
- Canonical name: Email Designer — variants: Journey Optimizer Email Designer
FAQ:
- Will the custom dark mode settings I define display in every email client? No. Email clients such as Yahoo!Mail and AOL never display any dark mode rendering, and email clients such as Gmail override custom dark mode settings with their own settings.
- What does the default dark mode preview of the Email Designer show? It previews how the default dark mode will render in most supporting email clients, applying the ‘full color invert’ color scheme to all elements except images and icons.
- Can I change the colors of images and icons for dark mode? No, but you can define specific assets for dark mode only: select an image, switch to Dark mode using the dedicated toggle in the Settings pane and select a different asset.
- How do I see the final dark mode rendering for various email clients? Select Simulate content, then Simulate content (AEP profiles) from the dropdown, then select Render email and connect to your Litmus account.
- Which method does the Email Designer use for custom dark mode? Journey Optimizer uses the
@media (prefers-color-scheme: dark)CSS query. - Can I define dark mode in a theme? Yes. If you use a theme with your email or template content, you can define an independent dark mode version of each color variant, directly at the theme level.
Best practices:
- For optimal results, test your content with the email clients you are targeting.
- Save logos and icons as PNGs with transparent backgrounds to avoid visible white boxes in dark mode.
- Avoid images with hardcoded white or light backgrounds.
- If transparency is not an option, place images on a solid background in your design to prevent awkward color inversions.
- Ensure sufficient contrast between text and background colors for readability in both light and dark modes.
- Avoid relying on background colors alone for critical content. Some clients override background colors in dark mode, so ensure key information is still visible.
- Use color combinations easy to distinguish for people with color blindness.
- Use a midtone palette to ensure contrast against both light and dark backgrounds.
- Use accessible color combinations with high contrast to improve readability and meet Web Content Accessibility Guidelines (WCAG) standards. Use tools like WebAIM’s Contrast Checker to verify color contrast.
- Avoid thin fonts, as thin fonts can impact readability. If your brand requires a thin font, bold it in dark mode.
- Skip pure white on pure black, as it can cause eye strain and might be automatically inverted by some email clients.
- Provide accessible fallback styling if dark mode is not supported.
- Use the Email Designer’s dark mode preview, which uses inverted color schemes, to spot issues early.
- Use the Email rendering option, which leverages Litmus, to simulate your designs across major email clients (Apple Mail, Gmail, Outlook) and see how colors and images behave in dark mode.
Related pages:
- For the Journey Optimizer Email Designer: Email Designer
- To start from the Design from scratch option and add structures: Design content from scratch with the Email Designer
- To add content components to your content: content components
- To see a simulation that comes as close as possible to the final result for each email client: Email rendering
- To test content variations with sample input data or AI auto-generation: Learn how to simulate content variations
- To define dark mode versions of color variants at the theme level: theme
Personas:
- marketer: Can switch to the Dark mode preview in the Email Designer and edit styling color attributes such as text, backgrounds and button. Can select an image, switch to Dark mode using the dedicated toggle in the Settings pane and select a different asset. Can select Switch to live view, then the Dark mode toggle on top of the screen, to preview the dark mode version across devices. Can select Simulate content, then Simulate content (AEP profiles), then Render email and connect to a Litmus account to see the final dark mode rendering. The page states that the colors of images and icons cannot be changed, but specific assets can be defined for dark mode only. Where: “Define custom dark mode”.
Onboarding:
- Level: Beginner, Intermediate
- First minimal step: On top right of the central canvas, switch the toggle to Dark mode.
- Success check: The default dark mode preview displays.
- Previous: To add structures to your content before switching the toggle to Dark mode: structures; To add content components to your content before switching the toggle to Dark mode: content components