Button background color based on value (range)

Hi,
is there a lovelace card for a sensor/button card that can change his background based on value of a sensor?
I like to create a room environment view with different sensors. The card should change his color based on the value of the sensor. Temperature for example: below 20 in blue, below 22 in green, below 24 in orange and above in red.
The Sensor card can do this but only its graph, not the background.
Maybe someone like to create such a card, if it not exists.