GithubHelp home page GithubHelp logo

shamin / figma-react-icons Goto Github PK

View Code? Open in Web Editor NEW
7.0 3.0 0.0 26 KB

CLI to generate react icon component files from figma

License: MIT License

JavaScript 100.00%
figma react cli figma-react-icons

figma-react-icons's Introduction

figma-react-icons

npm version

CLI to genereate react icon component files from figma

Install

$ npm install --global figma-react-icons

Prerequesties

You will need to have a figma access token, you can get it from here.

How to use

  • Create a figma file with icons like this file.

  • Open the project in a browser to get file id and node id from the figma url. You need to select the artboard to view the node id.

For example, for a url like this,

https://www.figma.com/file/B1v7c2kZ8EnvG3tLlxmT89/how-to-delivery-svg-from-figma-to-react?node-id=2%3A3

The file id is B1v7c2kZ8EnvG3tLlxmT89 and the node id is 2%3A3.

  • Use the cli to generate the icon component files.
$ figma-react-icons -t $FIGMA_TOKEN -o <output-folder> -f <file-id> -n <node-id>

Inspiration

This is a CLI version of how-to-deliver-svg-icons-to-react created by @vborodulin

figma-react-icons's People

Contributors

shamin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

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.