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:

  1. 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.
  2. 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 (or theme.css, depending on your theme version).
    • Scroll to the very bottom of the file and paste the CSS code.
    • Save the file.
  3. theme.liquid File (Before Closing Tag)

    This method is more of a last resort if the others don't work, or if you prefer to keep all custom styles in one spot (though Custom CSS in Theme Settings is better for that). You'd wrap your CSS in tags.

    • Go to Online Store → Themes.
    • Find your active Dawn theme, click Actions → Edit code.
    • In the "Layout" folder, open theme.liquid.
    • Scroll to the very bottom of the file, just before the closing tag, and paste this:
      
      
    • Save the file.

    Moeed even shared a helpful screenshot of the result:

Don't Forget to Troubleshoot!

After adding any custom CSS, especially when dealing with app overrides, always remember these crucial steps:

  • Clear Your Browser Cache: Sometimes, your browser holds onto old styles. A hard refresh (Ctrl+F5 or Cmd+Shift+R) or testing in an incognito/private window can help. Hridoy_ShopifyDev reminded us of this!
  • Inspect with DevTools: If it's still not working, right-click on the variant pill on your product page and select "Inspect" (or "Inspect Element"). This will open your browser's developer tools, allowing you to see exactly which CSS rules are being applied and which ones might be overriding yours. This is what aniketdhamecha and Kyvern1 suggested.

The original post from Peter even included a link to their product page and a screenshot, which was super helpful for the community to diagnose the issue. Here's Peter's original request and visual:

I’d like to change them from Black to this blue #6dc3e8

So, the big takeaway here is this: when you're customizing your Shopify store, especially with visual elements like variant selectors, always consider if a third-party app might be in play. It's often the hidden layer that's causing your CSS to feel ignored! A quick check of your installed apps and a peek with your browser's developer tools can save you hours of frustration. Big thanks to Peter for bringing this up and to the whole community for their fantastic insights!

Share:

Use cases

Explore use cases

Agencies, store owners, enterprise — find the migration path that fits.

Explore use cases