Overview
Instance override propagation allows you to copy customizations from one component instance to multiple other instances in a single operation. This feature dramatically reduces repetitive design work when working with component instances that need similar customizations.This feature was contributed by @dusskapark. Watch the demo video to see it in action.
Use cases
- Design system updates: Apply approved customizations across multiple instances
- A/B testing: Create multiple variants with consistent overrides
- Rapid prototyping: Quickly propagate changes across similar components
- Component evolution: Test override patterns before updating the main component
- Consistency enforcement: Ensure similar instances share the same customizations
How it works
The override propagation workflow extracts override properties from a source instance and applies them to one or more target instances. This includes text overrides, visibility toggles, and nested instance swaps.Workflow
Select source instance
Select the component instance that has the overrides you want to copy. Use The result will show the selected instance and its current overrides.
get_selection to confirm you have the right instance selected.Extract overrides
Use This returns a structured map of all overrides including:
get_instance_overrides to extract all override properties from the selected source instance.- Text content overrides
- Visibility states
- Fill/stroke color overrides
- Nested instance swaps
Identify target instances
Determine which instances should receive the overrides. You can use
get_local_components to find all instances of a component.Apply overrides
Use The overrides are applied in a single batch operation with progress updates.
set_instance_overrides to propagate the extracted overrides to all target instances.Supported override types
Text overrides
Text overrides
Text content changes in component instances are captured and can be propagated to target instances. The override map includes the property path and new text value.
Visibility overrides
Visibility overrides
Show/hide states for layers within component instances can be copied to other instances, useful for toggling optional elements.
Instance swaps
Instance swaps
Nested component instances that have been swapped to different variants or components are captured and can be replicated.
Fill and stroke overrides
Fill and stroke overrides
Color overrides applied to instance children are extracted and can be propagated, though nested style properties may have limitations.
Best practices
- Verify compatibility: Ensure target instances are from the same main component or compatible component variants
- Test first: Apply overrides to a single test instance before propagating to many targets
- Document patterns: Keep track of common override patterns for your design system
- Incremental approach: For complex components, propagate overrides in stages rather than all at once
- Version control: Consider documenting override patterns in your design system guidelines
Tool sequence
join_channel- Connect to Figmaget_selection- Confirm source instanceget_instance_overrides- Extract override data from sourceget_local_components- Find target instances (optional)set_instance_overrides- Apply overrides to targetsget_nodes_info- Verify the propagation
Example scenario
Imagine you have a card component with 50 instances across your design. You customize one instance with:- Updated heading text
- Hidden badge element
- Swapped icon variant
- Changed button color
- Extract overrides from the customized instance
- Apply them to all 49 targets in a single operation
Demo video
Watch @dusskapark’s demonstration of instance override propagation:Related tools
get_instance_overrides- Extract override properties from a component instanceset_instance_overrides- Apply overrides to target instancesget_local_components- Get information about local componentscreate_component_instance- Create new component instances
Related prompts
swap_overrides_instances- Strategy for transferring overrides between component instances