This project uses the Figma API to process design files and extract component information.
pip install -r requirements.txt- Copy the
.envfile and update it with your actual Figma Personal Access Token:
cp .env .env.local- Edit
.env.localand replaceyour_figma_token_herewith your actual Figma Personal Access Token:
FIGMA_ACCESS_TOKEN=your_actual_figma_token_here
- Go to Figma Account Settings
- Scroll down to "Personal Access Tokens"
- Click "Create a new personal access token"
- Give it a name and copy the generated token
- Paste it in your
.env.localfile
- Never commit your
.env.localfile to version control - Keep your Figma Personal Access Token secure
- The
.envfile in the repository contains only placeholder values - Your actual tokens should only be in
.env.localor environment variables
After setting up your environment variables, you can run the scripts:
python render.py
python test.py
python testt.py
# etc.The following files have been updated to use environment variables instead of hardcoded tokens:
render.pytest.pyexport_figma.pychrome_bar_remover_enhanced.pyfigma_levelwise.pytestt.py
All hardcoded Figma Personal Access Tokens have been replaced with os.getenv('FIGMA_ACCESS_TOKEN').