Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Figma API Project

This project uses the Figma API to process design files and extract component information.

Setup Instructions

1. Install Dependencies

pip install -r requirements.txt

2. Environment Configuration

  1. Copy the .env file and update it with your actual Figma Personal Access Token:
cp .env .env.local
  1. Edit .env.local and replace your_figma_token_here with your actual Figma Personal Access Token:
FIGMA_ACCESS_TOKEN=your_actual_figma_token_here

3. Getting Your Figma Personal Access Token

  1. Go to Figma Account Settings
  2. Scroll down to "Personal Access Tokens"
  3. Click "Create a new personal access token"
  4. Give it a name and copy the generated token
  5. Paste it in your .env.local file

4. Security Notes

  • Never commit your .env.local file to version control
  • Keep your Figma Personal Access Token secure
  • The .env file in the repository contains only placeholder values
  • Your actual tokens should only be in .env.local or environment variables

Usage

After setting up your environment variables, you can run the scripts:

python render.py
python test.py
python testt.py
# etc.

Files Updated

The following files have been updated to use environment variables instead of hardcoded tokens:

  • render.py
  • test.py
  • export_figma.py
  • chrome_bar_remover_enhanced.py
  • figma_levelwise.py
  • testt.py

All hardcoded Figma Personal Access Tokens have been replaced with os.getenv('FIGMA_ACCESS_TOKEN').

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages