Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gmail ios dark mode converts background color #1863

Open
shsunmoonlee opened this issue Jan 12, 2025 · 0 comments
Open

gmail ios dark mode converts background color #1863

shsunmoonlee opened this issue Jan 12, 2025 · 0 comments
Labels
Type: Bug Confirmed bug

Comments

@shsunmoonlee
Copy link

Describe the Bug

gmail ios dark mode converts background color.
How should one apply blend mode using Tailwind?

      <Head>
        <meta name="color-scheme" content="dark" />
        <style>
          {`
            u + .body .gmail-blend-screen {
              background: #121212;
              mix-blend-mode: screen;
            }

            u + .body .gmail-blend-difference {
              background: #121212;
              mix-blend-mode: difference;
            }

            .body .gmail-blend-screen {
              background: #121212;
              mix-blend-mode: screen;
            }
            .body .gmail-blend-difference {
              background: #121212;
              mix-blend-mode: difference;
            }

            body {
              background-color: #121212;
              color: #faf8f5e6;
              font-size: 14px;
              font-family: Inter, sans-serif;
            }
          `}
        </style>
      </Head>
      <Preview>{previewText}</Preview>
      <Tailwind
        config={{
          theme: {
            extend: {
            },
          },
        }}
      >
        <Body>
          <Container className="gmail-blend-screen">
            <Container className="gmail-blend-difference">
               <Container> 
                 ...

Which package is affected (leave empty if unsure)

react-email

Link to the code that reproduces this issue

this issue

To Reproduce

      <Head>
        <meta name="color-scheme" content="dark" />
        <style>
          {`
            u + .body .gmail-blend-screen {
              background: #121212;
              mix-blend-mode: screen;
            }

            u + .body .gmail-blend-difference {
              background: #121212;
              mix-blend-mode: difference;
            }

            .body .gmail-blend-screen {
              background: #121212;
              mix-blend-mode: screen;
            }
            .body .gmail-blend-difference {
              background: #121212;
              mix-blend-mode: difference;
            }

            body {
              background-color: #121212;
              color: #faf8f5e6;
              font-size: 14px;
              font-family: Inter, sans-serif;
            }
          `}
        </style>
      </Head>
      <Preview>{previewText}</Preview>
      <Tailwind
        config={{
          theme: {
            extend: {
            },
          },
        }}
      >
        <Body>
          <Container className="gmail-blend-screen">
            <Container className="gmail-blend-difference">
               <Container> 
                 ...

check gmail ios on darkmode

Expected Behavior

original dark backgrouund.

What's your node version? (if relevant)

lts

@shsunmoonlee shsunmoonlee added the Type: Bug Confirmed bug label Jan 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Confirmed bug
Projects
None yet
Development

No branches or pull requests

1 participant