-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to start? #4
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Let´s start!
Duplicate figma design tokens file
Figma file: https://www.figma.com/file/IGr2xoqcZX91CU7CDr4ZsI
Get your figma file id
Get your figma API key
https://www.figma.com/developers/api
Install dependencies $ npm install figma-tokens --save-dev
And then, launch storybook $ npm run storybook
Modify config with your figma API key and figma id $ figma.config.json
Create config
![image](https://user-images.githubusercontent.com/1427623/92307902-f3f25080-ef99-11ea-94e4-69a06c0ad35a.png)
Generate design tokens as variables
$ npm run tokens
$ npm run tokens:api Generate tokens data base (only figma)
$ npm run tokens:build Generate all plattforms tokens vars with a figma data base
😊 Enjoy!
The text was updated successfully, but these errors were encountered: