GithubHelp home page GithubHelp logo

klaufel / figma-tokens Goto Github PK

View Code? Open in Web Editor NEW
23.0 5.0 5.0 288 KB

🎨 A light tool for generate Figma design tokens as variables.

License: MIT License

JavaScript 100.00%
design designsystem css figma tokens design-tokens design-system variables-css

figma-tokens's Introduction

figma-tokens's People

Contributors

dependabot[bot] avatar klaufel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

figma-tokens's Issues

How to start?

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.