Hi,
I added a template for Tailwind design tokens (template) from the ‘store’, but I can’t figure out how to use them in my personal project?
I can’t import them via library manager, they don’t show up under ‘SETS’ and I can’t find anything else to reference them.
1 Like
Hello @torben.spieker!
Have you tried to check if the imported file from the store is set as a shared library? If so, it should show up in the shared libraries section once you click on manage library from within any other file.
It’s also important to notice that shared libraries only work for the team it is imported to. If you try to see them from other teams, it will not show up (unless they are imported there as well).
About the tokens, the best way for now is to open the shared library file, download the tokens as a JSON file and then import them where you want to use. Maybe in the future tokens will be imported along the libraries.
1 Like
From what I understand how token import/export works, importing the tokens as JSON would overwrite my existing tokens, which is less than ideal.
I really don’t undestand why penpot couldn’t merge existing tokens with the imported ones, but I could do that by hand.
I might as well just try it myself when I get to it, but do you know if the existing connections between tokens and design objects would stay if I export my existing tokens and I re-import them together with other tokens?
You might want to do that manually anyway so you can deal with conflicts. But you could probably use any JSON merging tool if you’re confident you don’t have conflicts.
(That being said, I’d also find it valuable to have the option to import new tokens as an additional set instead of overriding existing tokens.)
Yes. If you keep the same token name, your existing tokens will stay applied to the design objects, even if you export and re-import them. I do this a lot! They even stay applied if you move the token to a different set (but keep its name.)