I’ve been trying to update our DS to support library swap. One thing I’m struggling to understand:
SWAP library looks for a key A in file A and matches key A in file B
but what I don’t understand is why nested keys are not updated if matched?
In library A I have a button component that uses background01 and font01
I have a library B I have background01 and font01 ( with different colours and font)
When I create a new file and insert my button component form library A and would like to apply styles from library B. Because library B does not have a button component FIGMA will not find the keys in common and won’t allow me to swap the styles.
Is there anyway I could use SWAP library to theme my design system without having a duplicate of all elements for each theme?