Back to Plugins
Text Auto Fill

Text Auto Fill

Automate your design content. Fill text, colors, and visibility from rules or a CSV file

Plugin Preview

Text Auto Fill preview

About this plugin

Figma Auto Text Plugin - Complete Guide


Overview

This plugin allows you to automatically fill frames with text and control visibility of elements using two modes: Text Rules and Excel/CSV.


Important Naming Convention

  1. Variables (text elements) must start with $ (e.g., $Product Name, $Price)
  2. Groups (frames/groups) must start with # (e.g., #Specifications, #Features)
  3. Elements without $ or # are not affected by the plugin




MODE 1: TEXT RULES


Basic Syntax


1. Change Text Content

$Product Name: Motor Oil 5W-30
$Price: $29.99

This will find text elements named $Product Name and $Price and replace their content.


2. Show/Hide Elements

Hide element (add // prefix):

//$Old Price
//#Summer Features


Show element (just write its name):

$Special Offer
#Winter Features


Important: When you change text, color, or stroke of an element, it automatically becomes visible!


3. Change Colors

Fill color:

$Header: #FF5733


Stroke color:

$Border&stroke: #000000


Global color replacement:

#FF0000 -> #00FF00

This will replace all red colors with green in selected frames.




Advanced Examples


Working with Nested Elements

If you have structure like:


Frame
....#Features
........$Feature 1
........$Feature 2
........#Advanced
............$Advanced Feature


You can access nested elements using dot notation:

#Features.$Feature 1: New text for feature 1
#Features.#Advanced.$Advanced Feature: Pro feature text


Complete Example

$Product Title: Professional Motor Oil
$Price: $49.99
//$Old Price
$Description: High-performance synthetic oil

#Benefits
$Benefit 1: Increases engine life
$Benefit 2: Better fuel economy

$Header: #1E3A8A
$Price: #FF0000
$Button&stroke: #000000




MODE 2: EXCEL/CSV


File Structure

Your Excel/CSV file MUST have these columns:


object________title_______________[custom columns]

$main 1_______Oil_5W30_A_______[...]

$main 2_______Oil_5W40_B_______[...]


  1. object (required): Frame name to fill
  2. title (required): New name for the frame
  3. custom columns: Your variables and groups


Column Types

1. Simple Text Variables

Column name: $Product Name

Cell value: Motor Oil Premium


Example:

object________title___________$Product Name_______$Price

$main 1_______Card_01_______Motor Oil 5W-30_______$29.99



2. Group with Visible Elements

Column name: #Features

Cell value: $Feature1;$Feature2


This will:

  1. Show the #Features group
  2. Show only $Feature1 and $Feature2 inside it
  3. Hide all other elements in the group


Example:

object________title___________#Features

$main 1_______Card_01_______$Engine Protection;$Fuel Economy



3. Groups with Values

Column name: #Specifications

Cell value: #Spec 1.$Title: API SN;#Spec 1.$Value: Plus


Example:

object________title___________#Specifications

$main 1_______Card_01_______#Spec 1.$Title: Viscosity;#Spec 1.$Value:

..................................................5W-30;#Spec 2.$Title: Volume;#Spec 2.$Value: 4L




Step-by-Step Instructions


For Text Rules Mode:

  1. Select frames in Figma that you want to modify
  2. Choose "Text Rules" mode in plugin
  3. Write your rules following the syntax above
  4. Click "Apply"


For Excel Mode:

  1. Prepare your frames:
  2. Name them starting with $ (e.g., $main 1, $card template)
  3. Name all variables with $ prefix
  4. Name all groups with # prefix
  5. Create Excel/CSV file:
  6. First column: object (frame names)
  7. Second column: title (new names for frames)
  8. Other columns: your variables and groups
  9. In plugin:
  10. Select all frames you want to fill
  11. Choose "Excel/CSV" mode
  12. Upload your file
  13. Click "Apply"




Pro Tips


1. Visibility Logic

  1. Elements with $ or # are hidden by default


To show them, either:

  1. List their names
  2. Change their content
  3. Include them in Excel columns


2. Multiple Values in Excel

Separate multiple items with semicolon:

$Option1;$Option2;$Option3


3. Complex Nested Structures

For deep nesting in Excel:

#Group1.#Group2.$Variable: Value



FAQ

Q: My elements aren't changing

A: Check that names start with $ or #


Q: Excel import says "Object not found"

A: Make sure frame names in Excel match exactly with Figma frame names


Q: Changes are very slow

A: Reduce the number of nested groups or split your Excel file into smaller batches


Q: Some elements stay visible when they shouldn't

A: Check for typos in names and make sure you use // prefix to hide elements explicitly

Plugin Details

Version13
CreatedMay 6, 2025
Last UpdatedSeptember 27, 2025
Categorydesign-tools-other
CreatorПавел Котов
Stats15 installs, 0 likes
PricingFree

Technical Details

  • API:1.0.0
  • UI:src/ui.html
  • main:src/code.js
  • Document Access:dynamic-page
  • Editor Types:
    figma
  • Allowed Domains:
    • none