Contributing
If you want to get started contributing to Tokens Studio for Figma read this short guideline that should get you started.
- Clone the repository
- Run
yarn
to install dependencies - Run
yarn build:watch
to build the plugin and watch for changes - Open Figma -> Plugins -> Development -> Import plugin from manifest... and choose manifest.json file from this repo.
Known issues
Cannot read property document of undefined
This error can be solved by clearing Figma's cache. To do that follow the steps outlined in this document.
Mac
Use the Terminal app to clear the cache.
Quit the Figma desktop app.
Open the Terminal.app and enter the following command: rm -rf "$HOME/Library/Application Support/Figma/"{Desktop,DesktopProfile}
Try opening the Figma desktop app again.