I am following the video https://youtu.be/dtXg-OlL3qo for color metafield it is working fine for just 1 combination of variant like i have Purity option and size option and 3rd one is color option so when i added 2 option for purity and 3 option for color and 1 option for size the color variants looks fine in frontend but when i am adding another number in size option the color variant is not showing correct. attaching here screenshot also.
This is coding bug & i need to check in code, so better you can provide access. Also why you are managing the colors from metafields,
You can code the color option like this
style=“background-color: {% if value == ‘gold’ %}#b76e79{% elsif %}color2{% elsif %}color3{% endif %}” https://prnt.sc/yeLoTXD1I_Qe
It’s just a CSS code and there will be no effect of this on the already working functionality. You can test this by placing the code and can let me know if there are further issues.