3. Image Design
- Use transparent PNG or SVG files for logos and icons.
- Add a slight border or shadow to icons to make them stand out regardless of the background.
- Ensure icons or logos have enough internal contrast.
4. Test Button/Link Styling
- Use underlines for links, as colored text links might lose visibility in dark mode.
- Example:
<a href="https://example.com" style="color: #1A73E8; text-decoration: underline;">Visit My Website</a>
Sample Signature HTML
Here's a sample HTML signature that works well in both light and dark mode.
<table style="width: 100%; border-collapse: collapse; font-family: Arial, sans-serif;">
<tr>
<td>
<p style="font-size: 14px; color: #333333; margin: 0;">Best regards,</p>
<p style="font-size: 16px; font-weight: bold; color: #333333; margin: 0;">John Doe</p>
<p style="font-size: 14px; color: #555555; margin: 0;">Software Engineer | Acme Corp</p>
<p style="font-size: 14px; color: #555555; margin: 0;">
📧 <a href="mailto:john.doe@example.com" style="color: #1A73E8; text-decoration: none;">john.doe@example.com</a> |
📞 <a href="tel:+1234567890" style="color: #1A73E8; text-decoration: none;">+123 456 7890</a>
</p>
<p style="font-size: 14px; margin: 0;">
<a href="https://www.linkedin.com/in/johndoe" style="color: #1A73E8; text-decoration: none;">
<img src="https://example.com/linkedin-logo.png" alt="LinkedIn" style="width: 20px; height: 20px; vertical-align: middle;"> LinkedIn
</a>
</p>
</td>
</tr>
</table>
Testing Your Signature
- Use Dark and Light Mode Email Clients:
- Test in Gmail (desktop and mobile) and other email clients to verify the signature's appearance.
- Simulate Different Modes:
- Toggle between dark and light mode in your email client to check the contrast and layout.
- Preview Across Devices:
- Send test emails to yourself and view them on desktops, tablets, and phones.
By following these steps, your signature will look professional and consistent in both light and dark modes!