This is source for Refine, a Figma plugin for Karat design team to quickly set up Figma files.
The plugin consists of two parts:
- Creating and naming pages
- Pulling in a notepad + instructions component to Getting Started page
You can use this code to create your own plugin.
Keep in mind that you'd need to have your own instructions component and add its key* to the code. In order for the plugin to work, the instructions component should live in your team's shared library.
*To find your component's key, open Figma desktop app, select component, and run this in console: figma.currentPage.selection[0].key