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

Css variables won't parsed #125

Open
NV4RE opened this issue Aug 9, 2023 · 0 comments
Open

Css variables won't parsed #125

NV4RE opened this issue Aug 9, 2023 · 0 comments

Comments

@NV4RE
Copy link

NV4RE commented Aug 9, 2023

Hello, it seem css variable not supported in most email client, and it should be replace by inliner before sent.

input

/* style.css */
.bg-gray-100{
  --tw-bg-opacity:1;
  background-color:rgb(237 242 247/var(--tw-bg-opacity));
}
<!-- index.html -->
<link href="style.css" rel="stylesheet" />
<div class="bg-gray-100">
  Hello there
</div>

output

<div class="bg-gray-100" style="--tw-bg-opacity: 1; background-color: rgb(237 242 247/var(--tw-bg-opacity));">
  Hello there
</div>

expected

<div style="--tw-bg-opacity: 1; background-color: rgb(237 242 247/1);">
  Hello there
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant