- Create a new app and add a **[Table](/docs/widgets/table)** component to the canvas.
- Open the Query Panel at the bottom and click on the `+ Add` button.
- Select REST API as your data source - your query will be named as restapi1 by default.
- Choose GET method and enter the below URL:
```
https://fakestoreapi.com/products
```
- To view the data that your query will return, click on the **Preview** button. Click on the **Run** button to execute the query and retrieve the data.
<imgstyle={{border:'0',marginBottom:'15px'}}className="screenshot-full"src="/img/how-to/change-text-color/table-with-data.png"alt="Table Component With Data"/>
- For the `category` column, paste the below code under Text Color to dynamically change the text color based on the value of the cell:
```
{{cellValue == 'electronics' ? 'red' : 'green'}}
```
Now, if the cell value is `electronics`, the text color will be red; otherwise, it will be green.
<divstyle={{textAlign:'center'}}>
<imgstyle={{border:'0',marginBottom:'15px'}}className="screenshot-full"src="/img/how-to/change-text-color/conditional-text-color.png"alt="Conditional Text Color"/>
</div>
<i>You can use also Hex color codes for more color options.</i>