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.json
file 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
yarn
to install dependencies. - Run
yarn build:watch
to 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
yarn
to install dependencies. - Run
yarn build:watch
to start webpack in watch mode. - Open
Figma
->Plugins
->Development
->Import plugin from manifest...
and choosemanifest.json
file 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.