Skip to main content

Borders and Dark Mode

Learn how borders behave in Dark Mode across email clients. Avoid common display issues by using padding instead of matching borders.

Why Borders Cause Problems in Dark Mode

Many email clients treat borders differently from background colors when Dark Mode is enabled.

For example:

  • Your email body background may switch to dark colors.

  • Your borders may remain unchanged.

  • White borders can become highly visible against dark backgrounds.

This issue is common in clients like Outlook.com.

Example in Light Mode

If you apply a white border on a white background, the border appears invisible. It looks like extra spacing around your content.

The light mode version of the two-column section isn't displaying borders

Example in Dark Mode

In Dark Mode, some email clients change the body background to dark colors. Borders may stay white.

This can create:

  • Bright outlines around content

  • Unwanted spacing effects

  • Poor visual contrast

The dark mode version of the two-column section changes the body background to dark colors and borders stays white

Best Practice: Use Padding Instead of Borders

If your goal is to create spacing between sections, use padding instead of borders.

Padding creates space inside a container. It does not create visible outlines in Dark Mode.

Benefits of Using Padding

  • Improves Dark Mode compatibility

  • Prevents unwanted outlines

  • Creates more consistent rendering across email clients


How Knak Helps Detect Border Issues

Knak automatically checks for border issues during email optimization.

If a border matches the background color in Light Mode, Knak displays a warning in the Optimize tab.

Review Border Warnings

  1. Open your email in Knak.

  2. Go to the Optimize tab.

  3. Look for Dark Mode border warnings.

Dark mode Border color warnings appear in the Optimize tab

Highlight and Edit Affected Sections

Use the available actions to locate and fix the issue quickly.

Highlight the Affected Section

  1. Click Highlight.

  2. Review the affected section in your email layout.

Edit the Section

  1. Click Edit.

  2. Open the styling settings for the affected area.

  3. Remove the border.

  4. Add padding instead.

Recommended Fix

To prevent Dark Mode rendering issues:

  • Remove borders that match the background color

  • Replace those borders with padding

  • Test your email in both Light Mode and Dark Mode

You can also review related documentation: Optimize Tab.


Need more help? Contact support via live chat within Knak using the chat bubble in the bottom right corner or email support@knak.com.

Did this answer your question?