GitHub Copilot: Sure, here's a possible repository description for this plugin:
This is a Figma plugin that updates the spacing and font sizes of selected frames and text nodes. It replaces old values with new ones according to predefined arrays of values. The plugin also loads all fonts used in text nodes and replaces line heights if desired.
- Replace padding, gap, font size, and line height values in selected frames and text nodes
- Load all fonts used in text nodes
- Replace line heights based on predefined arrays of values or reset them to "auto"
- Show error messages if no frame is selected or no text nodes are found
- Notify the user when the plugin has finished updating values
- Select a frame that contains nodes with padding, gap, font size, or line height values to replace
- Run the plugin
- Wait for the plugin to finish updating values and loading fonts
- Check the updated values in the selected nodes
To use this plugin, simply download the manifest.json
file from this repository and import it into Figma. You can do this by going to the "Plugins" page in Figma, clicking on the "Create your own plugin" button, and selecting the "Import Manifest" option.
Contributions are welcome! If you find a bug or have an idea for a new feature, please open an issue or a pull request.
This plugin is licensed under the MIT License. See the LICENSE file for details.