Skip to content
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

Open
klaufel opened this issue Sep 5, 2020 · 0 comments
Open

How to start? #4

klaufel opened this issue Sep 5, 2020 · 0 comments

Comments

@klaufel
Copy link
Owner

klaufel commented Sep 5, 2020

Let´s start!

Duplicate figma design tokens file

Figma file: https://www.figma.com/file/IGr2xoqcZX91CU7CDr4ZsI

image

Get your figma file id

image

Get your figma API key

https://www.figma.com/developers/api

image

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

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant