Auto update placed library components #202
Replies: 1 comment 4 replies
-
Let me recap so that we're on the same page: You have a main DS with tokens and components and everything setup, and you have another white label that is styled differently but also has a local token system. When users paste components from DS A to DS B they should update their token values (and they do once you hit Update). But it would be more convenient if the change of style happened as soon as users pasted the components over, right? I think the main problem with this is the performance impact this would bring: We'd essentially have to listen to every selection change (which would get triggered if you Cmd + V). However, if on every selection change we update all layers with the new token values the performance impact would be quite huge, which is why I think forcing users to hit Update is acceptable in comparison. Let me know if I misunderstood you and thanks for the feedback! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Placing components from a Central DS into a file with the same tokens but different values does not update automatically.
I have to click “update” everytime I drop a component in, in order for the newly placed components to update themselves to match the new token values from the file.
The usecase here would be to have a single Design System that has the main components defined.
This System would be used by 4 different “Products”. The “mechanics” of the components would have to be the same for all of the teams, but the “look” of the components not so. There would not be the freedom to tweak the functionality of these components. If this is needed, we’d built that into the component variants.
But we would allow flexibility for the teams to tweak their token values (not the tokens themselves)
I have been playing with this and I notice that when I place a component from the main library into a file that has a different token set (same tokens, different values) they do not update automatically to match the tokens. I have to click “update” in order for the newly placed components to update themselves to match the new tokens.
Unless the idea would be to use the token sets at the top, but I don’t think that’s what they’re there for. It would also make creating the initial DS quite heavy (having to switch between them and seeing the entire library switch).
Beta Was this translation helpful? Give feedback.
All reactions