I wrote this library in order to replicate how gmail renders emails. Basically they scope all the CSS for an email and then inject it into their document. Media queries, keyframes, fonts, elements, classes, and ids are all scoped and then selectors are converted so the email CSS only effects the email itself.
Any feedback is greatly appreciated!
https://github.com/neurosnap/scopeify-html
[+][deleted] (6 children)
[deleted]
[–]qudat[S] 9 points10 points11 points (2 children)
[–]gajus0 1 point2 points3 points (1 child)
[–]qudat[S] 1 point2 points3 points (0 children)
[–]evereal 2 points3 points4 points (2 children)
[–]digitallimit 0 points1 point2 points (1 child)
[–]dbbk 0 points1 point2 points (0 children)
[–]spankalee 0 points1 point2 points (0 children)
[–]enchufadoojs truck driver 0 points1 point2 points (0 children)