override
Creates an immutable partial override of this theme snapshot.
When colors is replaced without stateColors, state colors are re-derived from the replacement scheme. Otherwise unspecified families preserve their current values. The result always reports UiThemeOrigin.Override while retaining the current darkness and revision metadata.
Receiver
immutable theme snapshot used as the fallback for omitted families
Return
a new theme snapshot; this instance is never mutated
Parameters
optional complete semantic color replacement
optional state-aware color replacement; omitted values re-derive from colors when that family changes
optional typography replacement
optional component shape replacement
optional component sizing replacement
optional transient interaction-opacity replacement
optional modal overlay replacement