readthedocs / ext-theme

Read the Docs drop in replacement site templates
2 stars 2 forks source link

Email templates: use new theme #499

Open humitos opened 1 month ago

humitos commented 1 month ago

We are sending emails using the old styles. It would be good to refresh them by using the simplicity look and feel from the new dashboard. I think this is the file we need to update: https://github.com/readthedocs/readthedocs.org/blob/f8cbc1310524a91230d80bb4956e3b164911dd3b/readthedocs/templates/core/email/base.html

Here is an example:

Screenshot_2024-09-26_13-41-42

agjohnson commented 1 month ago

Unfortunately, using our dashboard styles in emails is not possible.

Email styling is a shit show and if you look at that source, it's all tables and inline CSS. This is on purpose as various providers like Gmail especially make styling as hard as possible.

Here is a breakdown of all the things that various providers break: https://www.campaignmonitor.com/css/

Here's everything Gmail Android breaks for example (it's a lot): https://www.campaignmonitor.com/css/email-client/gmail-android-app-imap/

I'm not opposed to updating the styles in the email templates but also very much not looking forward to working with these limitations or testing them.