Skip to content

Instantly share code, notes, and snippets.

@atomjoy
Created September 29, 2026 09:53
Show Gist options
  • Select an option

  • Save atomjoy/e534dd19e3e00c338e8b492af02111db to your computer and use it in GitHub Desktop.

Select an option

Save atomjoy/e534dd19e3e00c338e8b492af02111db to your computer and use it in GitHub Desktop.
Minimal html email template.

Html email template

Minimal html email template.

<!DOCTYPE html>
<html>

<head>
  <meta charset="UTF-8" />
  <title>Welcome</title>

  <style>
    #body {
      float: left;
      width: 100%;
      font-size: 16px;
      min-height: 100%;
      font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Open Sans', 'Google Sans', Roboto, Oxygen, Ubuntu, Cantarell, Poppins, Arial, Helvetica, 'Helvetica Neue', monospace, sans-serif;
      color: #333;
      background: #fafafa;
      background: url('https://raw.githubusercontent.com/atomjoy/signatures/refs/heads/main/img/bg5.png') center / cover no-repeat;
      /* background: url('https://raw.githubusercontent.com/atomjoy/icons/refs/heads/main/laptop/mac3.webp') center / cover no-repeat; */
      /* background-image: url('https://raw.githubusercontent.com/atomjoy/icons/refs/heads/main/laptop/mac3.webp');
      background-position: center;
      background-size: cover; */
    }

    #body img {
      display: inline-block;
      max-width: 100%;
      border: 0px;
    }

    #body a {
      font-size: 16px;
      text-decoration: none;
    }

    #body .email-button:hover {
      background: #ff2233 !important;
      transition: all .6s;
    }

    @media screen and (max-device-width:640px),
    screen and (max-width:640px) {
      .w100pc {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 1000px !important;
        height: auto !important;
      }
    }
  </style>
</head>

<body id="body" style="margin:0px; padding:0;">

  <table role="presentation" width="100%" cellpadding="0" cellspacing="0"
         bgcolor="transparent">
    <tr>
      <td align="center">
        <!-- Header -->
        <table width="90%" cellpadding="0" cellspacing="0" bgcolor="transparent"
               style="padding-bottom:10px;max-width:600px;margin-top:90px;">
          <tr>
            <td align="right">
              <a href="https://example.com/email/1"
                 style="font-size:12px;color:#999;">
                See in browser
              </a>
            </td>
          </tr>
        </table>

        <!-- Content -->
        <table role="presentation" width="90%" cellpadding="0" cellspacing="0"
               bgcolor="#ffffff"
               style="padding:25px;width:90%;max-width:600px;border-radius:6px;border-bottom:3px solid #000;">
          <tr>
            <td align="center">
              <img src="https://avatars.githubusercontent.com/u/112067799"
                   alt="Logo" height="90"
                   style="display:block;margin-bottom:20px;border-radius: 50%;">
            </td>
          </tr>

          <tr>
            <td>
              <p>Hello, {USERNAME}</p>
              <p>Welcome to our platform. We're excited to have you here!</p>
            </td>
          </tr>

          <tr>
            <td align="center" style="padding:20px;">
              <a href="https://example.com" class="email-button"
                 style="background:#000;color:#fff;font-size:16px;font-weight:600;padding:11px 25px;text-decoration:none;border-radius:6px;">
                See More
              </a>
            </td>
          </tr>

          <tr>
            <td>
              <p>Have a nice day!</p>
            </td>
          </tr>
        </table>

        <!-- Footer -->
        <table width="90%" cellpadding="0" cellspacing="0" bgcolor="transparent"
               style="padding:25px;max-width:600px;margin-bottom:90px;color:#999;font-size:12px;">
          <tr>
            <td align="center" style="padding-top:20px;">
              <a href="https://example.com">
                <img src="https://raw.githubusercontent.com/atomjoy/signatures/refs/heads/main/img/social-black/facebook.png"
                     alt="img" width="30px" style="border-radius: 50%;">
              </a>
              <a href="https://example.com">
                <img src="https://raw.githubusercontent.com/atomjoy/signatures/refs/heads/main/img/social-black/twitter.png"
                     alt="img" width="30px" style="border-radius: 50%;">
              </a>
              <a href="https://example.com">
                <img src="https://raw.githubusercontent.com/atomjoy/signatures/refs/heads/main/img/social-black/linkedin.png"
                     alt="img" width="30px" style="border-radius: 50%;">
              </a>
            </td>
          </tr>

          <tr>
            <td align="center" style="padding-top:20px;">
              © 2026 Company
            </td>
          </tr>
        </table>

      </td>
    </tr>
  </table>

</body>

</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment