JSON Populate is a Figma plugin that allows you to link to a JSON file to use it and replace text layers of your Figma document with actual data.
Installing the plugin can be done through Figma's Plugin store. To run the code you have to run npm install
first and make sure you have TypeScript installed globally on your machine. Then to run the plugin:
npm run start
npm run scss
Your JSON should use the following structure:
{
"categoryA": ["itemA", "itemB"],
"categoryB": ["itemC", "itemD"]
}
- Better documentation
- More error handeling
- Support for more JSON structures
- Use local JSON/Paste JSON
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.