A Figma plugin that generates placeholder text using LLM based on brand tone of voice and text purpose.
- Brand-Aware Text Generation: Enter your brand's tone of voice and background
- Automatic Character Limit: Automatically calculates maximum character count based on text box size and font properties
- Purpose-Driven Content: Specify the purpose of the text (e.g., header, CTA, shop now module)
- LLM-Powered: Uses OpenAI's GPT-4o-mini to generate brand-aligned text
-
Install Dependencies
npm install
-
Build the Plugin
npm run build
-
Install in Figma
- Open Figma Desktop app
- Go to
Plugins→Development→Import plugin from manifest... - Select the
manifest.jsonfile from this directory
-
Enter Brand Prompt
- Describe your brand's tone of voice, style, and background context
- This helps the LLM understand how to generate text that matches your brand
-
Select a Text Box
- Click on any text node in your Figma design
- The plugin will automatically detect the text box size and font properties
-
Enter Text Purpose
- Describe what the text should accomplish (e.g., "header", "CTA button", "shop now module", "product description")
-
Set OpenAI API Key
- Enter your OpenAI API key in the plugin UI
- The key is stored locally and never shared
-
Generate Text
- Click "Generate Text"
- The plugin will:
- Calculate the maximum character count based on the text box dimensions
- Send a request to the LLM with your brand prompt and text purpose
- Update the selected text box with the generated text
-
Character Count Calculation: The plugin measures the text box dimensions and font properties to calculate how many characters can fit in the available space.
-
Text Generation: A prompt is sent to OpenAI's API that includes:
- Your brand's tone of voice and background
- The purpose of the text
- The maximum character count
-
Text Update: The generated text is automatically inserted into the selected text box.
- Figma Desktop app (for plugin development)
- OpenAI API key
- Node.js and npm
- Watch mode:
npm run watch- Automatically rebuilds on file changes - Build:
npm run build- Compiles TypeScript to JavaScript
Your OpenAI API key is stored locally using Figma's clientStorage API. It is never transmitted anywhere except to OpenAI's API when generating text.
MIT