How to style items dynamically based on data?

In our project, we’re rendering items in the CMS based on a property value category which is working great. However, for certain items we would like to individually style each item. Is there any way to do this? For example, the second item could have a border but no other item in the list would have one.

At the moment, there is a hacky approach, where you can conditionally set the styles by specifying the style HTML attribute on elements, and set a dynamic value like {color: "red"} or even {color: $ctx.currentItem.color}

We are working on the ability to apply variants conditionally, so that you can give different items different styles