Shopify themes, liquid, logos, and UX
Currently the white color swatch on a white background just blends in. I would like to add a border around it or all of them if that's the best fix. I have searched the forums and tried every code where someone asked a similar questions but none have worked. I figured its because of the theme I am using.
Solved! Go to the solution
This is an accepted solution.
Hello @Mike213
Go to Online Store, then Theme, and select Edit Code.
Search for assets/theme.min.css Add the provided code at the end of the file.
.color-swatch+label {
border-color: #000!important;
}
Hello @Mike213
Thank you for submitting your query to the Shopify community. I’d be happy to assist you. Could you please provide the store URL and password (if it’s password-protected) so I can review and get back to you with an update?
Hello @Mike213
Go to Online Store, then Theme, and select Edit Code.
Search for assets/base.css Add the provided code at the end of the file.
.color-swatch+label {
border-color: #000;
}
This theme doesn't have base.css or style.css . it does have theme.css so i tried that code there at the bottom but it did not work. I saw others asking the same question and those were the 3 css's that were suggested to look for.
This is an accepted solution.
Hello @Mike213
Go to Online Store, then Theme, and select Edit Code.
Search for assets/theme.min.css Add the provided code at the end of the file.
.color-swatch+label {
border-color: #000!important;
}
Thank you. That worked.
Hello @Mike213
You're very welcome! I'm thrilled to hear that you're pleased with the outcome. Don't hesitate to reach out if you need further assistance.
like and accepting the All solution. Thank you!
2m ago Learn the essential skills to navigate the Shopify admin with confidence. T...
By Shopify Feb 12, 2025Learn how to expand your operations internationally with Shopify Academy’s learning path...
By Shopify Feb 4, 2025Hey Community, happy February! Looking back to January, we kicked off the year with 8....
By JasonH Feb 3, 2025