Change swatch shape

Topic summary

A user seeks to modify product variant swatches on their Shopify store, specifically wanting to change material swatches from squares to circles while keeping letter/text options as squares.

Initial Solution Provided:

  • CSS code successfully implemented to make color swatches circular using border-radius: 50%
  • Code targets the second fieldset within variant-picker to affect only material swatches

Additional Request:
The user then asks about converting the side-by-side swatch display into a dropdown menu format (similar to standard select dropdowns).

Current Status:

  • There’s a misunderstanding between participants - the helper provided code for rounding dropdown edges, but the user clarified they want swatches contained within a dropdown selector rather than displayed inline
  • The discussion remains unresolved regarding the dropdown implementation
  • Screenshots were shared showing the desired dropdown format with swatches inside

This appears to require more complex customization beyond simple CSS, potentially involving theme liquid file modifications or JavaScript.

Summarized with AI on November 2. AI used: claude-sonnet-4-5-20250929.

How can I change the shape of my first set of material swatches to circles instead of the current squares?

However, I want to keep the square shape of my letters.

Is there also a code to make a drop down list of these options?

Thank you in advance!

https://luyendykjewelry.com/products/gedenksieraad-hanger-hart?variant=54070572876121

1 Like

Hi @Chrystel078

Try this one.

  1. From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
  2. Find the theme that you want to edit and click on “Actions” and then “Edit code”.
  3. In the “Assets” folder, click on “base.css, style.css or theme.css” file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
variant-picker > fieldset:nth-child(2) label.color-swatch {
    border-radius: 50%;
}

Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!

1 Like

Thanks! Worked like a charm!

Is there also a way to make a dropdown menu with these swatches?

Do you mean add round edges?

Actually a drop down menu. Now they are side by side.

Scherm­afbeelding 2025-01-21 om 22.14.40.png

Same instruction, add this code.

.avpoptions-container__v2 input[type=number], 
.avpoptions-container__v2 input[type=text], 
.avpoptions-container__v2 select, 
.avpoptions-container__v2 textarea {
    border-radius: 20px !important;
}

And Save.

Result:

Note: you can adjust/decrease the radius.

Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!

I think you misunderstand me.

I want to create a dropdown menu with the swatches.