Overview
Thetext_replacement_strategy prompt provides AI agents with a comprehensive methodology for replacing text in Figma designs. It emphasizes intelligent chunking, progressive verification, and maintaining design integrity during large-scale text updates.
When to Use
Use this prompt when:- Replacing text across multiple nodes
- Translating designs to different languages
- Updating content in tables, lists, or forms
- Filling in placeholder text
- Batch updating text content
Strategy Overview
1. Analyze Design & Identify Structure
Start by understanding the design organization:- Tables - Rows, columns, headers, cells
- Lists - Items, headers, nested lists
- Card groups - Similar cards with recurring text fields
- Forms - Labels, input fields, validation text
- Navigation - Menu items, breadcrumbs
2. Strategic Chunking
Divide replacement tasks into logical content chunks based on design structure.Chunking Strategies
Structural Chunking:- Table rows/columns
- List sections
- Card groups
- Top-to-bottom sections
- Left-to-right areas
- Screen regions
- Content related to the same topic
- Functionality groups
- Similar component instances together
3. Progressive Replacement with Verification
Replace text chunk by chunk with continuous verification:4. Intelligent Handling for Table Data
For tabular content:- Cell alignment and spacing
- Header/data relationships
- Conditional formatting based on content
5. Smart Text Adaptation
Adapt text based on container constraints:- Auto-detect space constraints
- Adjust text length appropriately
- Apply line breaks at linguistic boundaries
- Maintain text hierarchy and emphasis
- Consider font scaling for critical content
6. Export Scale Guidelines
Scale exports appropriately based on chunk size:7. Final Verification
After all chunks are processed:Chunking Examples
Tables: Process by Rows
Card Lists: Group Similar Cards
Forms: Group Related Fields
Navigation: Process Hierarchical Levels
Best Practices
Preserve Design Intent
- Always prioritize design integrity over automation
- Maintain alignment, spacing, and hierarchy
- Respect the original visual structure
Structural Consistency
- Keep related content together in chunks
- Maintain relationships between elements
- Preserve parent-child hierarchies
Visual Feedback
- Verify each chunk visually before proceeding
- Export small, targeted images for efficiency
- Catch issues early in the process
Incremental Improvement
- Learn from each chunk to improve subsequent ones
- Adjust text length patterns as needed
- Refine chunking strategy based on results
Balance Automation & Control
- Let AI handle repetitive replacements
- Maintain oversight for quality
- Verify critical content manually
Related Prompts
- Design Strategy - For understanding design principles
- Read Design Strategy - For analyzing existing designs