Skip to content

BrowserStackCE/percy-figma

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Percy Figma

Helps you upload Figma images to Percy and get visual comparisons.

Installation

Install the package globally using npm:

npm install percy-figma

Usage

  1. Set the Percy project token by running the following command in the terminal:
#macOS
export PERCY_TOKEN="your-percy-project-token


#windows
set PERCY_TOKEN="your-percy-project-token
  1. Set the Figma user token by running the following command in the terminal:
#macOS
export FIGMA_TOKEN="your-figma-user-token"

#windows
export FIGMA_TOKEN="your-figma-user-token"

Alternatively, you can add the figma_token field inside the config file.

  1. Set the Figma project token by running the following command in the terminal:
#macOS
export PROJECT_TOKEN="your-figma-project-token"

#windows
export PROJECT_TOKEN="your-figma-project-token"

Alternatively, you can add the project_token field inside the config file

  1. Create a .yml file to be used as the config. Provide a list of Figma UI IDs inside the config file.
ids: [123-123, 111-111]
  1. Run the command:
npx percy-figma

By default, the package looks for the percyFigma.yml config file. If you are using a different config file, specify it using the --config flag:

npx percy-figma --config your-config-file.yml

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •