Hi there, I’m running my store on Dawn theme and am trying to make the variant selector pills text smaller because right now the pills text is too large and it makes the pills too large. See image below. Does anyone know the code I can put in base CSS or somewhere to enable me to edit the pills? Thank you <3.
Topic summary
Goal: make variant selector “pills” (clickable labels for product options) in the Dawn theme smaller so they don’t look oversized.
How to implement (via CSS in Online Store > Themes > Edit code > Assets > base.css or style.css/theme.css):
- Reduce label padding to shrink pill size without affecting functionality:
.product-form__input input[type=‘radio’] + label { padding: 0.7rem 1rem !important; } - Alternatively, adjust multiple properties to further compact pills:
font-size: 1rem; margin: 0.5rem 0.5rem 0.3rem 0; padding: 0.5rem 1rem (applied to the radio label selector for product-form inputs).
Results and feedback:
- A participant confirmed the padding-based change made three variant options fit on a single line, improving layout.
- Screenshots were shared to illustrate the before/after appearance.
Status: practical CSS fixes provided and validated by a user; no unresolved issues raised.
1 Like
Hi @9INE
We can adjust the size cause it will be squeeze out but we can reduce the padding.
Check this one.
- From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
- Find the theme that you want to edit and click on “Actions” and then “Edit code”.
- 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:
.product-form__input input[type='radio'] + label {
padding: 0.7rem 1rem !important;
}
- And Save.
- Result:
1 Like
Hello @9INE
You can try this code: it will be helpful to you
Go to the Online Store->Theme->Edit code->Assets->base.css>Add this code at the bottom.
.product-form__input input[type='radio'] + label {
font-size: 1rem !important;
margin: 0.5rem 0.5rem 0.3rem 0 !important;
padding: 0.5rem 1rem !important;
}
I only have 3 options within my variant pills, and this option worked perfectly for me! It makes them fit into a single line.

