Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

myregistration's avatar

Tailwind in Laravel's Mailable Markdown

It would be great if we could easily implement Tailwind in the CSS used by Laravel's mailable markdowns.

0 likes
4 replies
Tray2's avatar

There is no good way to do this.

Snapey's avatar

but bear in mind that mail clients do not support modern css techniques and still largely use tables for layout

We have an expression, "a hiding to nothing" which is what you are on (the original OP, not you @muetze )

Muetze's avatar

That's right. I personally have SCSS for the mail CSS built in somewhere to be able to quickly change colors, or create multiple themes.

Otherwise, emails are really so limited that Tailwind is not worth it.

But maybe this is an alternative? I don't know. https://github.com/soheilpro/mailwind

Please or to participate in this conversation.