Skip to main content
All CollectionsUse Cases
Set sale price color to red
Set sale price color to red
Updated over a week ago

In this example, we will set the sale_price value text color to red, which is a common practice when running promo campaigns.

Without further ado, let's dive into it. First, you will need to map your data within Figma using Cropink's dedicated plugin. The following article describes the entire process - Mapping layers with data in Figma

Next, go to your project and in the "Designs" tab select the design you want to customize. Then, click on "Edit in Design Manager" under the product image and select "Layers Settings" on top of the page.

On your left hand side, you will see all the elements mapped from your Figma project and their custom settings. To set the red color for our sale price, simply click the + symbol next to the sale price element and choose "Data Mapping". From the dropdown list select sale_price as the parameter you want to map the data to the element. Once you've done that, click the + symbol again, but this time select "Fill Color". Using the HEX color scheme, select the color of your choice you want the sale price text to be displayed in. For the purpose of this example, we've chosen a typical red (HEX #ff0000).

When ready, click on "Save and Exit" on the upper right and you're ready to go! You have successfully changed the color of your sale price to r

Did this answer your question?