On my homepage, I display categories with unique labels and icons. Each category is assigned a specific color for its label/icon.
Typically, setting unique colors in HTML is straightforward:
<!-- ngRepeat: category in categories | orderBy:'display_priority' -->
<a ng-href="explore?category=53" ng-repeat="category in categories | orderBy:
'display_priority'" class="ui random-color item large label ng-binding ng-scope"
ng-show="hasCategory" href="explore?category=53" style="color:red";>
However, due to regular UI updates that reset the HTML, I am exploring ways to achieve the same results using CSS.
Currently, I can change all category labels to the same color with:
#front-page .ui.label {
color: #XYZ
}
Is it possible to uniquely change the color of each label through CSS alone?