Username Color Based on User Field


#1

Is there a way to change the color of display names based on the selection within a custom user field? The field I would like to base that on is a dropdown, so the options would be standardized (e.g. option 1 = brown display name, option 2 = yellow display name etc).

I’ve already done it based off of a group - e.g. moderators are green.

I’m sure that this can be done in CSS, but I’m a bit stuck figuring out which class/span to adjust for the color based on a user field.