Get variable modes
style.getVariableModes(options?)
Retrieve all variable modes applied to a style across all variable collections. Returns a map of collection IDs to their applied mode IDs.
Syntax
Parameters
-
options?: BreakpointAndPseudo - An object that lets you filter properties by breakpoint and/or pseudo-state. (Optional)
-
BreakpointId: Identifies the responsive breakpoint to get styles for. -
PseudoStateKey: Specifies a CSS pseudo-class to get styles for.
-
Returns
A Promise that resolves to a VariableModeStylePropertyMap object containing variable modes applied to the style, keyed by variable collection ID.
VariableModeStylePropertyMap