How do I change the font color of system emails like "forgot password".

I currently have white font color and white background.

I need this to work in Outlook, Thunderbird an any webmailer.

I tried overriding email.less, email-fonts.less, email-inline.less in my custom theme with no success.

  • open mail in browser then using firebug find the class,id or any css selector then add style tag and property as per your requirement in email template file(phtml). its definitely reflect. but I am not sure this is the right way to done this. Apr 20, 2016 at 9:30
  • and what less file am I supposed to modify? Apr 20, 2016 at 9:35
  • sorry dude. it is a trick only.still I am not working in email concept. my friend gets struggle like you that time I can give this suggestion after that he get success to change style of email. I am not much help you. Apr 20, 2016 at 9:41

1 Answer 1


I found the answer:

It's the _email-base.less

.main-content {
    background-color: @email-content__background-color;
    padding: @email-body__padding;
    color: #333333 !important;
  • Hello @Philipp Sander, Does this change color for all email templates ?
    – aravind
    Jan 13, 2020 at 9:52
  • It will only change it for the parts that a in an element with the class "main-content" Jan 13, 2020 at 10:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.