Back to Plugins
Export variables to Github repository

Export variables to Github repository

Export variables to Github repository

variables to jsonvariablesgithub

Plugin Preview

Export variables to Github repository preview

About this plugin

Introduction


Export all Figma variables as .json file to a Github repository.

All variables collections are exported.


Variables json structure is mapped from the getLocalVariablesAsync api function as following:

{
id: variable.id,
name: variable.name,
type: variable.resolvedType,
values: variable.valuesByMode
}


Plugin settings


Username: the username of the repository owner.

Repository: the name of the repository.

Path: the folders path where to save the variables file. Folder and sub folders must already exist in your repo.

File name: the name of the variables file.

Access Token: the Github access token needed to push on your repository. The access token must have read and write permission for Contents. Check the documentation on how to create an access token.

Commit message: add a short comment related to the modifications done.


All the settings are mandatory but the commit message.


Plugin functionalities


Save & Export: save the settings and push the variables file to your repository.

Download: locally download the variables file.

Reset settings: reset the plugin settings to default.

Plugin Details

Version1
CreatedOctober 4, 2024
Last UpdatedOctober 4, 2024
CategorySoftware development
CreatorMatteo
Stats13 installs, 0 likes
PricingFree

Technical Details

  • API:1.0.0
  • UI:dist/index.html
  • main:dist/code.js
  • Document Access:dynamic-page
  • Editor Types:
    figma
  • Allowed Domains:
    • https://api.github.com/