Colors from Figma to GitHub repo #8382
Closed
shashkovdanil
started this conversation in
General
Replies: 2 comments 4 replies
-
I think this is nice to have. I still prefer to enable tailwind Viewer https://tailwindcss.nuxtjs.org/tailwind/viewer and enable it on canary (canary.kodadot.xyz/_tailwind/). So, non-dev can review our token in-app through that. |
Beta Was this translation helpful? Give feedback.
4 replies
-
Would you mind if I created a Proof of Concept PR to show how it would work? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
@roiLeo @preschian hey guys! I've talked with @exezbcz, and we discussed syncing colors between design and code. There is Figma plugin Design Tokens, using this you can export your Figma data as JSON. Then we can transform this JSON to CSS variables and set these variables to tailwind colors in tailwind.config.
This plugin supports sync with GitHub repo.
Using this we will have 100% consistency between design and code, also no more need to prescribe colors manually (even after a change in the design).
I've attached example of JSON:
design-tokens.tokens.json
If you like this idea and find it useful - please let me know about it and I can do a Proof of Concept shortly. If everything is ok, then we can then synchronize borders, shadows, and other design stuff from Figma.
Beta Was this translation helpful? Give feedback.
All reactions