Connect to your GitHub repository
Connecting your GitHub repository to Figma allows the Code Connect UI to access your codebase, simplifying and speeding up component mapping while providing extra context about those mappings.
info
GitHub Enterprise Server (GHES) is not supported.
Initiate the connection
- Open the Code Connect UI in your Figma library file.
- Click the Settings icon.
- Select Connect to GitHub. Log into the GitHub account that has access to the repository you want to connect.
- When prompted, grant access to either:
- All repositories in your account.
- Specific repositories that contain the components for your design system.
Authorize access
The next step depends on your role in the Github organization you're trying to authorize:
-
If you have admin permissions
- Select Install and Authorize to grant Figma access.
- Confirm which repositories Figma can access.
-
If you don’t have admin permissions
- Select Request access.
- This sends a request to the organization administrator, who must approve access before you can continue.
info
For an overview of the permissions requested when authorizing with Github please visit GitHub App permissions overview →
Connect to a repository
- Once authorization is complete, select one repository to connect to the Figma library file. Only one repository can be connected per library file.
- Choose the directories within that repository that contain your UI components.
- These directories will now be available in Code Connect.