-
Notifications
You must be signed in to change notification settings - Fork 319
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Theming solution for LitElement #907
Comments
hello! i just wanted to share that in my case, i found applying a shared css theme to many shadow-dom lit-element components was no sweat using a decorator called mixin-css, and a couple helper functions, theme-components and register-components, i can easily share a css theme across many components like this: registerComponents(themeComponents(theme, components))
// ↑ ↑
// │ └——— apply the css theme to components
// │
// └—————————————————— register components via customElements.define this pattern decouples each component from any particular theme, making themes for components easily swappable at a high level 👋 chase |
IIUC, it basically achieves that using Constructible Stylesheets with fallback when needed. |
Closing in favor of lit/rfcs#10 |
No description provided.
The text was updated successfully, but these errors were encountered: