web-padawan / lit-components

Moved to https://github.com/vaadin/component-mixins

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[research] Implement ThemableMixin similar to Polymer version

web-padawan opened this issue · comments

Starting from lit/lit-element#470,finalize method is now protected and is used to collect styles from the prototype chain. We can try to use that point to collect additional style modules for shadow parts, roughly the same as ThemableMixin works. Also, the _getUniqueStyles method looks as what we could override (but that one is private and we should use it carefully).