-
Notifications
You must be signed in to change notification settings - Fork 216
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
Dark-Mode in emailing (with juice) #469
Comments
Juice would need a 'safelist' option to define selectors that shouldn't be inlined. There is excludedProperties, but that is for things like 'padding' or 'display'. Would be a great feature to add 👍 |
if you have control of what is css from a |
Hi there,
I'm looking in a way to preserve the way dark-mode css code with juice for emailing generation.
In emailing, we have to cope with different email platforms, each handling the dark-mode differently.
While the @media (prefers-color-scheme) is working fine, we need to use other element to make it work with Microsoft Outlook for example :
And
But those declarations are stripped of when juice does its thing.
Any indication or update that can be made to avoid this ?
Thanks !
The text was updated successfully, but these errors were encountered: