Given a webpage with dynamically loaded web components (shadow DOM) and some external CSS files (Bootstrap, etc.). I want these CSS files to be applied within the components (shadow DOM). What are the possible solutions?
- Using Polymer -- we're already using AngularJS and don't wanna start messing with another framework too. (Although it's possible.)
- Refactoring the CSS files and include
/deep/
everywhere -- maintainability... - Import each CSS file manually into the beginning
<style>
part of each shadow DOM -- no comment...
Is there any better way to apply whole CSS files within shadow DOMs?