How To create components without changing artboard layer order
Hello! I'm designing an interactive color index.
I have 6 rectangles in four colors, and the idea is to activate/deactivate these shapes by clicking the button that matches their color, and creating multiple color combinations by having more than one button activated at the same time.
My only problem is that the shapes must mantain their original layer order:

the shapes are stacked in a way that makes it impossible to create a component for each color, because it would group all the shapes with the same color together, and compromise the order above.
I've tried making the whole thing a single component and prototyping each color inside it, but it didn't work.
is there a way to make this sistem work?
thanks!
