All Projects → primer → Figma Action

primer / Figma Action

Licence: mit
Export image assets from Figma to GitHub

Programming Languages

javascript
184084 projects - #8 most used programming language

Labels

Projects that are alternatives of or similar to Figma Action

Rsync Deployments
GitHub Action for deploying code via rsync over ssh
Stars: ✭ 59 (-55.97%)
Mutual labels:  action
Avaloniabehaviors
Port of Windows UWP Xaml Behaviors for Avalonia Xaml.
Stars: ✭ 96 (-28.36%)
Mutual labels:  action
Essential Netty In Action
It is a book about the Essentials of Norman Maurer's Netty in Action.《Netty 实战(精髓)》是对 Norman Maurer 的 《Netty in Action》的一个精简
Stars: ✭ 1,502 (+1020.9%)
Mutual labels:  action
Animatedpencil
Animated Pencil Action view for Android
Stars: ✭ 61 (-54.48%)
Mutual labels:  action
Revert
A GitHub Action to automatically revert a commit on a '/revert' comment
Stars: ✭ 89 (-33.58%)
Mutual labels:  action
Astromenace
Hardcore 3D space scroll-shooter with spaceship upgrade possibilities.
Stars: ✭ 104 (-22.39%)
Mutual labels:  action
Skip Commit
GitHub Action: skip based on the last commit message containing a string
Stars: ✭ 51 (-61.94%)
Mutual labels:  action
Zoo
🌈 Cute pet zoo. Come and adopt a cute you like. 萌萌乐园,全自动领养自己喜欢的萌物。
Stars: ✭ 121 (-9.7%)
Mutual labels:  action
Postgresql Action
GitHub Action to setup a PostgreSQL database
Stars: ✭ 91 (-32.09%)
Mutual labels:  action
Kicad Action Scripts
Some KiCad plugins in Python
Stars: ✭ 111 (-17.16%)
Mutual labels:  action
Epic Kitchens 55 Action Models
EPIC-KITCHENS-55 baselines for Action Recognition
Stars: ✭ 68 (-49.25%)
Mutual labels:  action
Sense Navigation
Sheet Navigation + Actions for Qlik Sense.
Stars: ✭ 85 (-36.57%)
Mutual labels:  action
Action Download Artifact
⚙️ A GitHub Action to download an artifact associated with given workflow and commit or other criteria
Stars: ✭ 107 (-20.15%)
Mutual labels:  action
Curl
Wraps the curl CLI to be used in Github Actions
Stars: ✭ 59 (-55.97%)
Mutual labels:  action
3d Densenet
3D Dense Connected Convolutional Network (3D-DenseNet for action recognition)
Stars: ✭ 118 (-11.94%)
Mutual labels:  action
Api server boilerplate
typescript express board boilerplate using routing controller
Stars: ✭ 52 (-61.19%)
Mutual labels:  action
Customalertviewdialogue
Custom AlertView Dialogue is the world's most advanced alert view library. Custom AlertView Dialogue includes simple message popups, confirmation alerts, selector popups, action sheet bottom menus, and input/feedback contact forms.
Stars: ✭ 100 (-25.37%)
Mutual labels:  action
Laravel Handlers
Request handlers for Laravel
Stars: ✭ 128 (-4.48%)
Mutual labels:  action
Golang Action
A GitHub Action to run Go commands
Stars: ✭ 119 (-11.19%)
Mutual labels:  action
Action Send Mail
⚙️ A GitHub Action to send an email to multiple recipients
Stars: ✭ 111 (-17.16%)
Mutual labels:  action

GitHub action for exporting Figma components

NOTE: This repository is no longer maintained.

npm version

A GitHub action that will export Figma components from design files to your repository.

Usage

Example workflow

name: Export SVG from Figma
on: [push]
jobs:
  all:
    name: Figma Export
    runs-on: ubuntu-latest
    steps:
      - uses: primer/[email protected]
        with:
          args: "format=svg outputDir=./build/"
        env:
          FIGMA_FILE_URL: "https://www.figma.com/file/ZFjrph2HUwFK8Q3uEtJIu1PT/yourfilename"
          FIGMA_TOKEN: ${{ secrets.FIGMA_TOKEN }}

Variables

Secrets

FIGMA_TOKEN (required)

This token is used to access the Figma API. It's required to generate one so this action will work. It's recommended to set the token in a secret token in your repository.

env variables

FIGMA_FILE_URL (required)

This is the file url that you would like to export from. The action will search the file for components and export them with your configurations.

Workflow args (optional)

  • format – The export format for exporting from Figma. Options are svg, jpg, png. Default is jpg
  • outputDir – Where you would like the exported files to live. Default is ./build/
  • scale – When choosing an image format jpg or png this is the export scale between 0.01 and 4 that will allow you to scale the image. Default is 1.

Output

The output of this action lives in ./build/ by default, but can be configured. In addition to the files exported you will see a data.json file exported. This contains information about the exported components mapped by component id.

The directory will look like this:

./outputDir/
  ├── format/
  |     └── componentName.format
  └── data.json

The data.json file will look like this:

{
  "0:639": {
    "name": "plus", // component name
    "id": "0:639", // component figma id
    "key": "89696b0b52493acc8692546ac829bd4e334c63a2", // component global figma id
    "file": "FP7lqd1V00LUaT5zvdklkkZr", // figma file key
    "description": "keywords: add, new, more", // figma component description
    "width": 12, // width of the component frame
    "height": 16, // height of the component frame
    "image": "https://s3-us-west-2.amazonaws.com/figma-alpha-api/img/1/6d/1234" // aws URL for the exported file
  }
}

License

MIT © GitHub

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].