Set a text style based on option selection

I have a collection list, and each item has a different background color and text. I want to be able to change the text color of individual collection items to black or white through the CMS, but I can’t figure out how to do this.

I thought of having an ‘option’ field with the choices of ‘dark | light,’ and then bind the text style to black or white based on the option selection. But this doesn’t seem possible or the intended use-case.

Is there a way to achieve this effect through the CMS without any custom code?


Here is my public share link: LINK