shellscape / jsx-email

Build emails with a delightful DX
https://jsx.email
MIT License
897 stars 28 forks source link

fix(jsx-email): assert comma color function notation for Tailwind #101

Closed shellscape closed 6 months ago

shellscape commented 6 months ago

This PR contains:

Are tests included?

Breaking Changes?

If yes, please include "BREAKING CHANGES:" in the first commit message body, followed by a description of what is breaking.

List any relevant issue numbers: Fixes #97

Description

This issue fixes #97 by applying a post processor to generated CSS in the Tailwind component, and enforces use of comma separated notation for color functions, as many prominent email clients don't support other notation styles. https://www.caniemail.com/features/css-rgb/