Different border color based on tag/category

Hello everyone!

So I’m trying to find a way to display different color on the border of an image based on their tag/category. I have a repeater connected to a dataset with 50+ items and created tags to categorise them with a dropdown button and a custom search bar. My goal is to have at least 3 to 4 different colors based on the type of each item.

Thanks in advance.

Put the image in a transparent Box.
Make the box the same size as the image.
Change the borders of the box using the style setter.
See:
https://www.wix.com/velo/reference/$w/style/bordercolor

Thanks for the help. Already did that but the thing is I don’t know how to specify a color based on the tag of each item. As already mentioned, I have multiple items on different categories and I want to have different color borders based on their tag (category). The items are displayed on a repeater connected with my main dataset.