Change slider color via MQTT

Hello there!

I am a bit lost with my question here, the story is the following.
I am controlling some slider motors with my own software via MQTT, with a bidirectional communication: Home assistant can set the target position, and the slider motor sends the current position when the target is reached, or when the position was changed manually.
Currently the target position is set by sliders, and I would like to keep it that way, but some kind of visual feedback on the status of the motors would be nice.
Eg. with the previous environment I used before it got shut down, there was a possibility to change the color of the slider.
Is there something similar for home assistant?

Thanks in advance for your help!