Tutorial - Access CMS color "field" in builder

Just thought it might be good to share @dejan 's tip on how to access color from CMS or REST.

If you create a textfield in a CMS and add the color code (HEX or rgba) you can access it via attributes and use it in Builder.

  1. Add a “color” field in your CMS

  2. add color code to the CMS items
    Skärmavbild 2023-10-29 kl. 11.30.14

  3. Select the element you want to add the color (in example case; the background of logo)

  4. Access your color from the attributes manager:

  5. Happy styling through CMS items and the ability to colorize elements differently based on your preferences.

All credits for this solution goes to @dejan :pray:t3::raised_hands:t3:

4 Likes