openplugin is a powerful Figma plugin designed to streamline your workflow when dealing with multiple artboards (Figma Frames) of similar or inconsistent sizes. It provides two core functionalities: quickly finding artboards with identical dimensions and precisely correcting the size of a group of similarly sized artboards.
Whether you're trying to standardize your design files or quickly locate all screens of a specific breakpoint, openplugin helps you maintain consistency and efficiency.
openplugin offers two distinct modes to help you manage your artboards:
-
- Purpose: Instantly select all top-level frames on your current page that have the exact same width and height as a selected reference frame.
- Use Case: Ideal for quickly isolating all screens of a specific device size (e.g., all iPhone X artboards) or finding duplicates.
- How it works:
- Select any frame on your canvas.
- Run the plugin and choose "Find Similar Artboards".
- All frames on the current page that exactly match the dimensions of your selected frame will be automatically selected and zoomed into view.
-
- Purpose: Identify frames with dimensions similar to a selected reference frame (within a 10px tolerance) and then batch resize them to new, specified dimensions.
- Use Case: Perfect for standardizing slightly off-sized artboards, updating a set of screens to a new responsive breakpoint, or fixing minor inconsistencies across your file.
- How it works:
- Run the plugin and choose "Correct Artboard Size".
- Step 1: Select Reference Frame: Select a frame on your canvas that represents the dimensions you want to match against. Click "Continue".
- Step 2: Enter New Dimensions: The plugin will show you the dimensions of your selected reference frame. Enter the desired new
WidthandHeightfor the matching artboards. - Step 3: Preview Changes: Click "Preview Changes" to see a list of all frames that will be affected (those within ±10px of your reference frame's original dimensions). Each item will show its current dimensions and the new dimensions it will be resized to.
- Step 4: Apply Changes: If the preview looks correct, click "Apply Changes" to resize all listed frames.
- Download the Plugin: Clone this repository or download the ZIP file.
- Open Figma Desktop App: Ensure you are using the Figma desktop application.
- Import Plugin:
- Go to
Plugins>Development>Import Plugin from Manifest... - Navigate to the downloaded
openplugin-figmafolder and select themanifest.jsonfile.
- Go to
- Run the Plugin: You can now find
openpluginin yourPluginsmenu underDevelopmentor in the quick actions search (CMD/CTRL + / and type "openplugin").
To set up the project for development:
- Clone the repository:
git clone [https://github.com/opencore-x/openplugin-figma.git](https://github.com/opencore-x/openplugin-figma.git) cd openplugin-figma - No special build steps are required for this plugin, as it uses plain JavaScript and HTML.
- Load the plugin into Figma using
manifest.jsonas described in the Installation section. - Make your changes to
code.jsandui.html. Changes will be reflected when you re-run the plugin in Figma.
Contributions are welcome! If you have suggestions for improvements, new features, or find any bugs, please feel free to:
- Open an issue
- Submit a pull request
Please ensure your code adheres to good practices and include clear descriptions for issues and pull requests.
This project is licensed under the MIT License - see the LICENSE file for details.