segmentio / evergreen

🌲 Evergreen React UI Framework by Segment
https://evergreen.segment.com
MIT License
12.38k stars 830 forks source link

Is there a way to disable glamor and ui-box? #1571

Closed alarner closed 1 year ago

alarner commented 1 year ago

I'm using evergreen in an electron app and I believe that glamor and ui-box are causing content security policy issues due to their inline styles. I don't need to do server side rendering. Is there any way to disabled these libraries?

brandongregoryscott commented 1 year ago

I don't think this is possible - the way ui-box and glamor generate class names and inject styles into the stylesheet is critical to how those styles are applied through component props, whether you're doing client-side or server-side rendering. You wouldn't have a very visually appealing design otherwise!

alarner commented 1 year ago

Ok thanks for the info!