New custom card `color-entity-row` to show/change input_text value as a color selector

I need to do very unusual thing in Home Assistant. I have input_text.color that contains color in hex format. (eg #FF0000 — red, #00FF00 — green, and #999999 — grey).

I want to change that color in Home Assistant with some simple interface. The best solution that came to my mind is to create custom UI card — color-entity-row. This card can be used inside entities card:

cards:
  - type: entities
    entities:
      - type: custom:color-entity-row
        entity: input_text.color

Here is a tweet with a video how it works: https://twitter.com/bessarabov/status/1356587133029482497

The source code for this card is here — https://github.com/bessarabov/color-entity-row,
but, frankly speaking I’m not expecting this card to be useful for a lot of people. The task that I’m solving with this card is very uniq. I need to set color in input_text, usually the color is set for light objects and for the entities in light domain there is a neat interface that can change color.