There is a lot of information about dynamic colouring on the forum if you do the search, also quite a few videos on Inductive Univeristy.
Creating dynamic colors - Ignition - Inductive Automation Forum
Search results for 'dynamic color' - Inductive Automation Forum
Animated Style Classes Video at Inductive University
Dynamic Style Classes Video at Inductive University