GitHub Copilot: Sure, here's a possible repository description for this Figma plugin:
This is a plugin for Figma that helps you update the spacing and typography of your designs. It replaces padding, gap, and font size values in selected frames and text nodes, using a set of predefined rules. The plugin also loads all the fonts used in the text nodes asynchronously, to ensure that the new font sizes are applied correctly.
- Replace padding, gap, and font size values in selected frames and text nodes
- Load all fonts used in the text nodes asynchronously
- Apply a set of predefined rules to calculate the new values
- Show an error message if no frame is selected or no text nodes are found
- Notify the user when the spacings and font sizes have been updated successfully
To use the plugin, select a frame that contains nodes with padding, gap, or font size values that you want to update. Then, run the plugin from the Figma menu or using the keyboard shortcut. The plugin will replace the values in all the selected nodes, and notify you when the process is complete.
To install the plugin, download the source code from this repository and open it in Figma. Then, go to the Plugins menu, select "Development" > "Create Plugin", and choose the "manifest.json" file from the source code folder. Finally, click "Create Plugin" and the plugin will be installed in your Figma account.
This plugin is licensed under the MIT License. See the LICENSE file for more information.