design-tokens icon indicating copy to clipboard operation
design-tokens copied to clipboard

Plugin not working

Open laraamadeo opened this issue 1 year ago • 5 comments

I'm working in a big file with more or less 300 styles. When clicking to 'Export', nothing happens. However, in a file with less styles, it works. This is the error showing image

laraamadeo avatar Oct 16 '23 14:10 laraamadeo

I've just run into what seems very similar, if not the same. Nothing happens on export, but there's a very similar error in the console: image

katywatkins avatar Oct 27 '23 19:10 katywatkins

Follow up - turns out the error I ran into above was caused by a mode name that included parentheses. Changing the name fixed the problem.

katywatkins avatar Oct 31 '23 19:10 katywatkins

Hey @laraamadeo we would need to work on narrowing in on the issue:

Can you send me a copy of all your styles? Is this possible? E.g. by exporting a Figma file and attaching it/sending it via email / creating a new file with only the styles and sharing it with me?

  1. Do you export variables?
  2. Do you have any styles with images / gradients / etc?
  3. Do you have any styles or variables with special characters in the names?

lukasoppermann avatar Nov 01 '23 16:11 lukasoppermann

I seem to also have this issue and my variable names have both spaces and parentheses.

burn2delete avatar Jan 19 '24 03:01 burn2delete

I was able to resolve my issue.

I updated my collection names to avoid any special characters. I also updated the plugin to support name conversion for the variable values, which is required when referencing other variables.

https://github.com/lukasoppermann/design-tokens/pull/301

burn2delete avatar Jan 20 '24 01:01 burn2delete