Skip to main content
Question

How do I conditionally format text field being populated using Google Sheet plugin?

  • July 15, 2025
  • 1 reply
  • 77 views

LOkwu

Hi all. I’m new to Figma and currently working on a project where I’m generating cards using text pulled from a Google Sheet via a plugin likeĀ Google Sheets Sync.

The sync is working fine. Each card is receiving the correct text from the sheet. However, I’d like to go a step further and applyĀ specific font colors to certain words or patterns within the text.



Here is the data in sheets:

Ā 

Here’s a screenshot of the cards in Figma:
Ā 

The 2 cards in the frame are populating with the text correctly. However I would like the font to have certain colors based on certain keywords. For example,

  • In Line 1: ā€œSomeā€ and ā€œlineā€ should be red, everything else in line 1 should be white.Ā 
  • In Line 2: ā€œSomeā€ should be red, anything text in bracket should be orange, etc.
    Ā 

My Questions:

  • Is this type ofĀ partial, inline text formattingĀ (color changes) possible when using data from Google Sheets?
  • Are there any beginner-friendly tips or best practices to achieve this?

I’m hoping to avoid having to manually change the colors of individual words in each card.

Thanks in advance!



Thanks.Ā Ā 

This topic has been closed for replies.

1 reply

Ellwood
  • Active Member
  • July 15, 2025

Hi ​@LOkwuĀ ,

Ā 

I’ve been using the google sheets plugin for a while and to the best of my knowledge, there’s no way to conditionally format portions of text within a singleĀ imported data field.

You could cutĀ up the string into different data cells to target a specific ordering (ie first word)Ā depending how you cut up the string (could be a lot of manual work to manipulate the data especially if using a large data set), and create an autolayout to bring the sentence together. This way you could style words given a specific order in the sentence, but still, this doesn’t allow you to essentially ā€˜search’ for specific words or patterns of words to style differently.

Hope that helps.