Color Swatches in Magento 2

To create color swatches in Magento 2, add or edit an attribute in Stores > Attributes: Product, and choose Visual Swatch as Catalog Input Type for Store Owner:

For the visual representation of a swatch, you can use an image or choose a color with the integrated color picker. To submit the color you have chosen, click on the button in the lower right corner:

To make it visible in the category overview, choose Yes for Used in Product Listing in the tab Storefront Properties:

For a preview of a solid color it is much easier to choose color instead of an image to get better results:

In comparison, this is how an image swatch may look like:

Leave a Reply

Your email address will not be published. Required fields are marked *