The request
I think it is useful it the user can provide a mapping on which colors the value text should get, based on the actual value. So you can more easily see if a sensor's value is worrying or not.



The alternatives
I do not have an alternative, I think it could be made possible using ui mods or something but I don't feel like installing mods.
Additional information
I think it should be done here
https://github.com/home-assistant/frontend/blob/dev/src/panels/lovelace/cards/hui-entity-card.ts#L229