Join the Webstudio community

Updated 2 months ago

Selecting tokens in your project

At a glance

The community members are discussing an issue where the token selection in a project switches to a local token when the user switches to another element and then comes back. The initial intention was to prevent users from accidentally editing tokens, but the community members have concluded that they should remember the previously selected token on an instance. They have also discussed the order of tokens and how local styles can conflict with token styles. A community member has shared a link to a related GitHub issue, but there is no explicitly marked answer in the comments.

Useful resources
So I tried creating tokens in my new project but whenever I select a token and then switch to some other element and come back again, the selection switches to local token
1
O
N
d
8 comments
We have been discussing this internally, initial intention was to prevent users from editing tokens accidentally, because they didn't choose them
We came to conclusion that we should remember the previously selected token on an instance
๐Ÿ˜ฎ I see
@Neverstopdatta I'd be keen to understand more on the need to keep selecting the token.

Might you be able to share how you're using this?
@Alex This is what I mean. When I switch to some other element and switch back to the previous element (where a token was selected) then the local token is automatically selected. It was confusing.

To make matters worse, I had a conflict where if I edited some local styles and switched to token, the styles in right panel would be marked in red. (I resolved this one though, just clear local styles and select token again.)
And another question, how is the order of tokens decided? In a template I copied (Marketing template) there are some elements with local style in first position. The last token in these seem to stay selected.
Attachment
SmartSelect_20231213_231550_Samsung_Internet.png
Add a reply
Sign up and join the conversation on Discord