You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In local variables, copy-paste the "grey" colour tokens from the "material/colors" variable collection to the "palette" collection
Delete the "material/colors" collection
Double-click the "grey" group title and rename to "common/grey". This will group it under the existing "common" group.
In the left nav of the local variables window, drag the "grey" group out of the "common" group
Run the Material UI Sync Figma plugin to generate a theme file
Current behavior
All my grey tokens are exporting as "null" in the generated JSON file. I've attached the JSON theme file, and a screenshot of the impacted colours from the local variables window in Figma. theme.json
Expected behavior
All colour tokens are exported properly
Context
I moved the location of the grey colours around several times. Not sure if this is what caused the issue.
Previously the grey colours were in the default "material/colors" variable collection but I wanted to consolidate my colours so I moved them into the "palette" collection. Moved via copy-paste.
Then I grouped them under "common" with the black and white colours.
Then decided to take them out of the "common" group and just have them in their own folder to better match the structure I saw in the default theme viewer.
oliviertassinari
changed the title
Material UI Sync plugin returning some colour tokens as "null"
[sync] plugin returning some colour tokens as "null"
Dec 22, 2024
oliviertassinari
changed the title
[sync] plugin returning some colour tokens as "null"
[sync] plugin returning some color tokens as "null"
Dec 22, 2024
Steps to reproduce
Steps:
Current behavior
All my grey tokens are exporting as "null" in the generated JSON file. I've attached the JSON theme file, and a screenshot of the impacted colours from the local variables window in Figma.
theme.json
Expected behavior
All colour tokens are exported properly
Context
I moved the location of the grey colours around several times. Not sure if this is what caused the issue.
Your environment
Search keywords: scope: sync, palette, figma, null, tokens
The text was updated successfully, but these errors were encountered: