This Style Components Using Lightning Design System Styling Hooks documentation illustrates how to set custom properties on an individual custom LWC to change the styling:
/* myBaseButton.css */
:host {
--slds-c-button-brand-color-background: orange;
--slds-c-button-brand-color-border: orange;
/* Other CSS custom properties here */
}
and it looks like a lot more properties are now available.
Is there presently any way to define a set of a couple of dozen of these once and have them used in many custom components? Or is that what theming will allow:
What About Theming Custom Properties?
For Winter ‘21, component-level customizations (e.g. --slds-c-*) will be the only custom properties that will be available.
Global styling capabilities that allow theming are in the works but not within the scope of Winter ‘21. When global styling is introduced, it will be an additive feature that will not break any of your existing styling hooks usage.
PS
Perhaps could be done via code similar to this How to let the end users override CSS of managed package's LWC? though I don't need the runtime switching.
PPS
Is this the best approach at the moment loading from a static resource using loadStyle?