SVG icons and EHLD diagrams for Reactome pathway diagrams, sourced from Figma.
icons/- SVG icons and XML metadata files (R-ICO-XXXXXX.svg and .xml)ehld/- EHLD diagram SVGs (R-HSA-XXXXXX.svg)download_illustrations.py- Script to download icons and EHLDs from Figma and validate themVERSION- Current release version number
- Python 3 with
requests(pip install requests) - Docker (for the illustration-validator)
- A Figma personal access token
export FIGMA_TOKEN="your_figma_token"
# Download everything (icons + EHLDs) and validate
python3 download_illustrations.py
# Icons only
python3 download_illustrations.py --icons
# EHLDs only
python3 download_illustrations.py --ehlds
# Download without validating
python3 download_illustrations.py --skip-validation- Connects to the Figma API and finds all components/frames on the "Export" page
- Exports icons (
R-ICO-*) and EHLD diagrams (R-HSA-*) as SVGs - Clears existing SVGs and saves the new ones (icon XML metadata files are preserved)
- Runs the illustration-validator Docker container to validate:
- Icons: XML metadata (categories, references, curator info)
- EHLDs: SVG structure (BG, LOGO, REGION/OVERLAY groups)
Each icon has a corresponding XML metadata file (R-ICO-XXXXXX.xml) containing categories, curator/designer info, descriptions, and database references. These are stored alongside the SVGs in the icons/ directory.
To create new XML metadata files, use the Icon XML Metadata Generator (see below).
icon-xml-generator.html is a self-contained HTML tool for generating icon XML metadata files. Open it in a browser — no build tools or dependencies required.
- Category selection — loaded from the illustration-validator
categories.txt - Curator search — searches the Reactome Content Service for people by name, auto-fills ORCID
- Designer info — pre-filled with defaults (Cristoffer Sevilla)
- Reference databases — dropdown loaded from
references.txt, with UniProt ID validation - Synonyms — add/remove as needed
- Live XML preview — updates as you fill in the form
- Download — saves the XML file with the correct filename
- Open
icon-xml-generator.htmlin a browser - Enter the icon identifier (e.g.
R-ICO-012345) - Select a category, search for a curator, and fill in the remaining fields
- Add references and synonyms as needed
- Click Download XML to save the file
- Move the downloaded
.xmlfile into theicons/directory