Git Product home page Git Product logo

figma-export-icons's Introduction

figma-export-icons

This was forked from the original figma-export-icons package that hasn't been maintained.

Forked additions

ExportVariants

In the config you can optionally supply exportVariants: true if you want it to export and split the variant/component icon in figma. It will give each icon variant a different named suffix according to variant name.

config property: exportVariants

maxConcurrentConnections

When the amount of icons gets above ~400 it was causing S3 errors (from where Figma hosts the assets). This config param allows you to pass a number value to lower that and to chunk the request in smaller batches.

config property: maxConcurrentConnections

frames

The config frame option only allows a single-frame to be defined. You can optionally set the frames config option and pass an array of frame names. If it can't find a matching frame you will not get an error like with the single frame option.

config property: frames

figmaPersonalToken env variable

Added support for an env variable set to FIGMA_PERSONAL_TOKEN so that the config file can be committed without it.

env variable FIGMA_PERSONAL_TOKEN

skipIgnore command line argument

By default the script will add the config file to the .gitignore file. This gives users of this script to have final say on security risks. When paired with an env variable Figma token this should be turned off.

command line arg --skip-ignore


example config file:

{
  "figmaPersonalToken": "YOUR_PERSONAL_TOKEN",
  "fileId": "FILE_ID",
  "page": "Identity",
  "frame": "Icons",
  "frames": ["Optional", "list", "of", "frames"],
  "iconsPath": "assets/svg/icons",
  "removeFromName": "Icon=",
  "exportVariants": true,
  "maxConcurrentConnections": 100
}

figma-export-icons's People

Contributors

tsimenis avatar fernker avatar george-qikker avatar leonidasesteban avatar mikeozornin avatar dependabot[bot] avatar

Stargazers

Ivan Demidov avatar

Forkers

humalytix

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.