Looking for a "display large number and conditional color" card

I am working on some reporting dashboards (so far I’ve been mostly using the built-in elements), and I would like to display

  • a transformed number from an entity attribute (the first case will be the number of hours since an ISO timestamp in the attributes of an entity, alternatively a difference in epoch timestamps / 3600) …
  • … which will be BIG …
  • … and which background will be green if the number above is smaller than a threshold, and red if larger

What is the typical approach in such a case?

  • to find the magical card that meets all of these requirements?
  • or to “chain” some behaviours (basic card + a card that will display BIG + a card that will manage the background, nested)? ← this is probably an imaginary approach

This is a candidate for “the magical card” you are looking for…

Take a stock Entity card and then use card-mod to set fonts, colors etc.
Examples are here: main card-mod thread - 1st post - fantastic link.

Or use a markdown card and use HTML tags, like

This might also be of interest.