You can access the plugin directly from the Figma community - Link to plugin
This plugin allows you to copy all the properties of any group or frame and its child layers in Figma, enabling easy recreation in code using Cursor.
- Download this project.
- Open Figma and navigate to
Plugins->Development->Import plugin from manifest... - Choose the
manifest.jsonfile from this project directory.
- Select a frame or group in Figma (ensure it's not a component; detach if necessary).
- Run the plugin and click "Copy to Clipboard".
- In Cursor, use the "design this" command and specify the desired positioning.
- Paste the copied properties.
- Run
yarnto install dependencies. - Run
yarn build:watchto start webpack in watch mode.
yarn build:watch: Starts webpack in watch mode for development.
yarn build: Builds the plugin for production.
This project uses:
- React + Webpack
- TypeScript
- Prettier precommit hook
- Run
yarnto install dependencies. - Run
yarn build:watchto start webpack in watch mode. - Open
Figma->Plugins->Development->Import plugin from manifest...and choosemanifest.jsonfile from this repo.
⭐ To change the UI of your plugin (the react code), start editing App.tsx.
⭐ To interact with the Figma API edit controller.ts.
⭐ Read more on the Figma API Overview.