I want to display color swatch options on the product detail page grouped by their pattern type, like this:
Color
Pasley
[ Red Pasley] [ Blue Pasley]
Peacock
[ Purple Peacock] [ Red Peacock]
Currently, all color swatches appear in one flat list.
Is there a way to group them under headings like Pasley and Peacock?
Any suggestions or examples would be appreciated.