Taming Your Variant Pills: How to Change Colors in Dawn (Even with Apps!)
Hey everyone! I recently jumped into a really common and super insightful discussion on the Shopify community forums that I just had to share with you all. It started with @peterotoole, a store owner, hitting a wall trying to change the variant pill colors on their Dawn theme. Peter wanted to switch them from the default black to a specific blue (#6dc3e8), but no matter what they tried, nothing seemed to stick.
This is one of those situations that many of us have faced: you know what you want to do, you're trying the 'obvious' solutions, but your store just isn't listening. Let's dive into what the community uncovered and how you can tackle similar issues!
The Mystery of the Stubborn Variant Pills
Initially, some of the great folks in the community, like ai-theme-code-editor, offered the standard advice for changing variant pill colors in the Dawn theme. They pointed to the Assets → base.css file and suggested using CSS selectors like these:
/* Default */
.product-form__input input[type="radio"] + label {
background: #ffffff;
color: #000000;
border: 1px solid #000000;
}
/* Hover */
.product-form__input input[type="radio"] + label:hover {
background: #e6e6e6;
}
/* Selected */
.product-form__input input[type="radio"]:checked + label {
background: #000000;
color: #ffffff;
border-color: #000000;
}
This code is perfectly valid for Dawn's native variant pickers. But here's the kicker: it wasn't working for Peter. Why? This is where the community's collective expertise really shone!
The "Aha!" Moment: It's an App, Not Just the Theme!
Several members, including irtevo, Steve_TopNewYork, Kyvern1, and tim_tairli, quickly identified the real culprit after looking at Peter's store: the variant pills weren't being rendered by Dawn's default functionality at all! Instead, they were generated by an app – specifically, Globo Product Swatches (or Globo Product Options).
This is such a crucial takeaway for any store owner: if you're using a third-party app to enhance or replace core theme functionalities (like variant swatches, pop-ups, custom fields, etc.), that app often injects its own HTML and CSS. This means that Dawn's default CSS selectors won't apply, and you need to target the app's specific elements.
The Solution: Targeting Globo's Swatches with Custom CSS
Once the community figured out it was Globo, the solutions started pouring in, all pointing to very similar CSS code. The key is to override Globo's styles directly. Here's the consolidated CSS that several experts, like Moeed and Kyvern1, recommended to change the selected variant pill to that desired blue (#6dc3e8) with white text:
/* Selected Globo Product Swatch */
.globo-swatch-product-detail ul.value li.select-option input:checked + .globo-style--button,
.globo-swatch--selected,
.globo-swatch input:checked + label,
.globo-product-option .selected {
background: #6dc3e8 !important;
border-color: #6dc3e8 !important;
color: #fff !important; /* Optional for better contrast */
}
You might notice the !important flag in there. This is often necessary when overriding styles from apps, as they often apply their own styles with high specificity, and !important helps ensure your custom code takes precedence.
Where to Add This Custom CSS
The community offered a few excellent places to inject this code, listed here in order of generally preferred practice:
-
Theme Settings → Custom CSS (Recommended First)
Many modern Shopify themes, including Dawn, have a dedicated "Custom CSS" section within the Theme Editor. This is usually the cleanest place to add small snippets of CSS without directly editing theme files.
- Go to Online Store → Themes.
- Find your active Dawn theme, click Customize.
- In the theme editor, look for Theme settings (often a gear icon or brush icon in the sidebar).
- Find the Custom CSS section and paste the code there.
- Save your changes.
-
Assets → base.css (or theme.css)
This is a common stylesheet file where theme-wide CSS is stored. Adding your custom CSS at the very bottom of this file is a good practice.
- Go to Online Store → Themes.
- Find your active Dawn theme, click Actions → Edit code.
- In the "Assets" folder, open
base.css(ortheme.css, depending on your theme version). - Scroll to the very bottom of the file and paste the CSS code.
- Save the file.
-
theme.liquid File (Before Closing

