Join the Webstudio community

Updated last week

Class sync / token sync

Relume has a browser extension that syncs styles from classes with the same name in Webflow. Webstudio duplicates the token if anything is different, resulting in a confusing mess of tokens with the same names when copy pasting. This happens on Craft-based sections in marketplace templates.

We want to build good sites fast. That requires a working component library. Nothing really works at the moment. We started building our own, but it is a chore. A class sync feature would allow us to use any component from anywhere and not worry about styles changing or duplicate tokens.

We're desperate enough to attempt making our own extension with ChatGPT. Just thought I'd check with you guys first.
2
O
S
H
35 comments
Maybe we can find a workaround for the time being, can you give me a better example of your workflow? in the simplest form:

  1. I click this
  2. then do this
  3. then do this
  1. Duplicate cloneable project which uses Client-First tokens with Craft variables
  2. Paste a component from Relume
Problem: new tokens are duplicated, not gaining the Craft variables
I think all is needed is a way to check if the token exists, if so use it and don't create a new one. I think this should be a default in Webstudio, if there was a way to clear unused tokens.
For a "quick" workaround, I'm currently manually converting the Relume library to a modified version of Craft
pasting component from relume? how are these supposed to work with craft, relume is a completely different library, external to webstudio, it doesn't know any css variables existing in webstudio
"Client-First tokens" what are projects which use client-first tokens with craft variables? where are you getting that?
Let me guess, because this isn't making any sense:

  1. you inserted craft library
  2. you pasted client-first section from relume
  3. then you modified relume sections to use craft variables
  4. now you are pasting relume sections and these insert new tokens and not reusing your modified tokens
Is this the flow?
Ok I just tried to reproduce what I described above and I can't.
I need precise step by step, super simple to repeat, not made up based on complex steps you had in mind from the project but literally, please go and do your steps on an empty project, then share the steps and share that project.
This is the part that matters
I get that, I was trying to understand the exact workflow
But to answer your question,
  1. I pasted the Relume style guide into Webstudio
  2. Replaced most styles with Craft variables
  3. Pasted in a section from Relume, and the styles from the classes overwrote the variables.
I think the reason is that relume's style guide, the classes don't match by id the classes from sections.

Maybe we can fix it by treating classes like ids, using class itself as a unique identifier and so when they match, pasted one doesn't get added
can you share some project that's already prepared, so I don't have to?
This is just the unedited Relume style guide and hundreds of unedited sections
@Oleg Isonen I just had a look at the project Seth shared. It is super slow to browse.
I will look how to improve performance
wow, is this thouthands of relume components pasted into one project?
I am super impressed we can even handle this many components on every single page. I don't think the product was even designed to do this stuff. Essentially you are trying to copy all relume components which has thouthands and cancel their subscription, which is understandable that you want this but I wouldn't expect us to support this in terms of performance.

I would love you to try this on webflow to see when their builder starts struggling hard πŸ™‚
I have no need for such collections.Β 
Then again, I would not call single pages with 50 components unreasonable. Such could be a long one-pager with complex, interactive storytelling.

Maybe Bogdan can use this as a benchmark project to load large pages incrementally.
we have a very big landing page with no perf issues, this project is taking it to the next level, we will look into what can be done quickly but won't spend engineering days.
webstudio.is website is quite big, including the landing page that's very long
It is not my collection and it's not a feature request. I only had a brief look at this shared project and wanted to make you aware of performance limits.
Yes totally understand, I am saying this to set expectations for everyone in the room, not responding directly to you πŸ™‚
back to the original topic

Pasted in a section from Relume, and the styles from the classes overwrote the variables.

@Seth I don't understand how to reproduce this and giving up.
Go through your own steps and try to reproduce it from scratch on a clean project. Then you will see why I can't.
We match tokens by internal id, I assume you have a scenario where internal ids don't match, but I need a clear reproduction of the scenario with a specific workflow. Otherwise I won't dedicate resources fixing it.
https://p-e5635173-a45b-4b9e-955c-26cbc1268f36.apps.webstudio.is/?authToken=d5e26a01-ea05-468c-ba39-ea6fb1d7194f&mode=preview
@Oleg Isonen Here is a clean project following the same steps. On the home page is a simple section showing duplicate tokens and combo classes merging into a single broken token
I don't mind paying for their subscription! My plan is to slowly adapt their library to a modified version of Craft, so I can build better sites faster. Once each section is adapted, I plan to store the clipboard data in Baserow, create an interface similar to Relume, with buttons to copy the clipboard data with the proper mime type & json.
don't share it with public though, relume will consider it stealing if you share it with other users
@Oleg Isonen does this properly explain the issue?
Sorry, got distracted, will look again
Hey, I will follow this too. I would like to find a good workflow with Relume/Flowbase and Webstudio/Craft to speed up my website creation.
Add a reply
Sign up and join the conversation on Discord