When a lit component extends a mixin, style in component overrides style in mixin.
Example:
my-component.js
export class HomePage extends ViewMixin(LitElement) {
static styles = css`
:host {
color: blue;
}
`;
view-mixin.js
export const ViewMixin = superClass => {
class ViewMixinElement extends superClass {
static styles = css`
:host {
background-color: red;
}
`;
The component will render with color=blue but background will not be red. How can I add background-color=red to all views while adding specific :host styling per view ?