7 ms·
As others have already answered styling into Components is still hard, but there are answers coming soon with part/theme and Scoped Stylesheets. Also, ZephJS,
by zarzz 7y ago
As others have already answered styling into Components is still hard, but there are answers coming soon with part/theme and Scoped Stylesheets.
Also, ZephJS, the Web Components library I am championing, has the ability to inherit from another ZephJS element which allows one to add to or even completely replace the styles for the new element without any special css magic. So if I want to style <acme-text-field> I simply inherit from it in my new <my-text-field> and I can style however I want.
https://gist.github.com/arei/8083a6270e704b830c68a2020f3e5e3e https://gist.github.com/arei/8083a6270e704b830c68a2020f3e5e3...
- winterthedeep 7y agoZephJS looks cool, will try it soon. Thank you!