Topic summary
A user seeks to reposition color swatches to the left and change their shape from square to circular on their Shopify store (ryusei.co.id).
Solutions Provided:
Two developers offered CSS-based solutions:
-
Option 1: Add custom CSS to
theme.liquidbefore the</body>tag, targeting.product-card__info fieldsetwithjustify-content: flex-startand applyingborder-radius: 50%to.color-swatchelements -
Option 2: Similar approach using custom CSS in theme settings, adjusting
.product-card .product-card__infoalignment and swatch border-radius
Key Technical Details:
- Both solutions use
border-radius: 50%to create circular swatches - Alignment changed via
justify-content: flex-startorjustify-items: flex-start - CSS targets product card info sections and color swatch elements
- Implementation requires accessing Shopify theme code editor
The discussion remains open with no confirmation of which solution was implemented or successful.
Hi @Ryusei_1 Please share your store URL. I will check and help.
Hello @Ryusei_1
You can add code by following these steps
-
Go to Online Store → Theme → Edit code.
-
Open your theme.liquid file
-
Paste the below code before on theme.liquid
Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.
Hi @Ryusei_1 You can use this custom css code:
.product-card .product-card__info {
justify-items: flex-start;
}
.product-card .product-card__info > fieldset.h-stack {
justify-content: flex-start;
}
.product-card .product-card__info .color-swatch {
border-radius: 50%;
}
you can add this code to: theme settings → custom CSS

