Skip to main content
Question

Library Swap and Colour themes

  • September 3, 2021
  • 1 reply
  • 378 views

Edward_Battistini

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?

This topic has been closed for comments

1 reply

  • 0 replies
  • October 3, 2021

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings