Apply instance-specific styles using the styleOverride attribute
For LIT components, the
styleOverride attribute allows you to inject custom CSS rules directly into the component's shadow DOM. This is useful for instance-specific styling, dynamic runtime styles, or customizing components without modifying global CSS or source code. Because these styles are injected into the shadow DOM, you may need to use !important to ensure your overrides take precedence.<!-- Example: Overriding the project button color to red for a specific plugin instance -->
<contribe-plugin styleOverride=".contribe-selector-project-button { color: red !important; }"/>