jsx-email icon indicating copy to clipboard operation
jsx-email copied to clipboard

Default styles: Why? Can they be changed?

Open clearbrief-brian opened this issue 11 months ago • 1 comments

  • Component or Package Name: Render
  • Component or Package Version: All?

Documentation Is: Maybe /render?

  • [ ] Missing
  • [ X ] Needed
  • [ ] Confusing
  • [ ] Not Sure?

Please Explain in Detail...

It's not clear why default styles are needed. Is it for some amount of normalization between all of the email clients?

Your Proposal for Changes

It would be great if this is something that could be changed. If it is customizable, an example would be super helpful. Also, the component examples are super helpful, but it would be awesome if we could see each component rendered out in the docs.

P.S. Thank you for this project!!

clearbrief-brian avatar Jan 14 '25 15:01 clearbrief-brian

Is it for some amount of normalization between all of the email clients?

That and best practices for the most common uses. Default styles are just that: defaults. You're not going to typically find opinionated or technical defaults customizable (at least not in most responsible frameworks). Components which have default styles also come with the disableDefaultStyles prop, which is also available as a property in the config files that'll disable them globally.

P.S. Thank you for this project!!

🙇

shellscape avatar Jan 14 '25 15:01 shellscape