add tailwindcss cdn #346
|
Hi, can i add tailwindcss cdn in mail template? please answer me |
Answered by
JeremiahRanen7
Jul 13, 2024
Replies: 3 comments
You can definitely add a tailwindcss cdn in mail template , but :
|
0 replies
Answer selected by
eleith
|
hi, i'm a newbie and i can't find html file to add. can u create some mini
demo for me
Vào Th 7, 13 thg 7, 2024 lúc 20:33 Jeremiah Ranen R <
***@***.***> đã viết:
… The answer is *YES*
You can definitely add a tailwindcss cdn in mail template , but :
- *Avoid Advanced Tailwind Features:* Some advanced features like
*pseudo-classes* *(:hover, :focus)*, custom properties, and complex
layout utilities may not work in emails.
- *Use Basic Tailwind Classes:* Stick to basic styling classes for
padding, margins, colors, and typography to maximize compatibility.
—
Reply to this email directly, view it on GitHub
<#345 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BIDHZXBNTOKQF6HUMHWX7FLZMEUC7AVCNFSM6AAAAABK2HRSSKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMRWHEYDINRUGQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
0 replies
|
there is an example on this project README on how to send HTML files: https://github.com/eleith/emailjs?tab=readme-ov-file#example-usage---html-emails-and-attachments as long as you have a valid HTML file, it should work. as @JeremiahRanen7 advises, just because your HTML file renders correctly, it is not gauranteed to render in an email client and thus you'll want to avoid using certain CSS classes. you can use https://www.caniemail.com/ to learn what css/html is compatible with the email clients you want to focus on. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can definitely add a tailwindcss cdn in mail template , but :