Customization of multiple variant modal in ERPnext

I want to do some changes in multiple variant modal…like in front of the colour name i want a colour box, which I selected during adding the colour in item attribute form…

this is what i want…

and right now what we have in ERP is

and I have customized the item attribute form like this

So basically what i want is…i want to fetch this color box into the multiple variant modal in front of that particular color name… Please tell me how to do this??