Documentation Index
Fetch the complete documentation index at: https://mintlify.com/grab/cursor-talk-to-figma-mcp/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Thedesign_strategy prompt provides AI agents with comprehensive guidelines for working with Figma designs. It covers document structure, naming conventions, layout hierarchy, and best practices for creating cohesive design systems.
When to Use
Use this prompt when:- Creating new designs from scratch
- Building complex UI layouts (login screens, dashboards, forms)
- Establishing naming conventions and hierarchy
- Planning element creation order
- Understanding Figma’s design principles
Key Principles
1. Start with Document Structure
- Always call
get_document_info()first to understand the current state - Plan your layout hierarchy before creating elements
- Create main container frames for each screen or section
2. Naming Conventions
- Use descriptive, semantic names for all elements
- Follow consistent patterns:
- “Login Screen” for screens
- “Logo Container” for grouped elements
- “Email Input” for form fields
- Group related elements with meaningful names
3. Layout Hierarchy
Create parent frames first, then add children:4. Input Fields Structure
- Create a container frame for each input field
- Include a label text above or inside the input
- Group related inputs together (username + password)
5. Element Creation Tools
create_frame()- For containers and input fieldscreate_text()- For labels, button text, and links- Set appropriate visual properties:
fillColorfor backgroundsstrokeColorfor bordersfontWeightfor text hierarchy
6. Modifying Existing Elements
- Use
set_text_content()to update text - Use
set_fill_color()to change colors - Use
move_node()andresize_node()for adjustments
7. Visual Hierarchy
Position elements in logical reading order (top to bottom):- Maintain consistent spacing between elements
- Use appropriate font sizes:
- Larger for headings/welcome text (20-32px)
- Medium for input labels (14-16px)
- Standard for button text (14-18px)
- Smaller for helper text/links (12-14px)
8. Best Practices
- Verify each creation with
get_node_info() - Use
parentIdto maintain proper hierarchy - Group related elements together in frames
- Keep consistent spacing and alignment
Example: Creating a Login Screen
Color Best Practices
Figma uses RGBA values from 0 to 1:- White background:
{ r: 1, g: 1, b: 1, a: 1 } - Light gray:
{ r: 0.95, g: 0.95, b: 0.95, a: 1 } - Black text:
{ r: 0, g: 0, b: 0, a: 1 } - Blue primary:
{ r: 0.2, g: 0.4, b: 1, a: 1 } - Border gray:
{ r: 0.8, g: 0.8, b: 0.8, a: 1 }
Related Prompts
- Read Design Strategy - For reading existing designs
- Text Replacement Strategy - For updating text in designs