Size tag design (dawn theme)

Topic summary

A user is seeking help customizing product size tags on their Shopify store’s main product grid using the Dawn theme.

Desired styling:

  • Transparent background
  • Thin black border (as minimal as possible)

Current status:

  • The user has provided a reference image showing the desired appearance
  • No solutions or responses have been posted yet
  • This appears to require custom CSS modifications to achieve the specific visual effect
Summarized with AI on November 20. AI used: claude-sonnet-4-5-20250929.

Hi! I’m trying to add the size tag on the main grid like this: with a transparent background and the thinnest possible black border. Can anyone help me?

url: https://voodoo-warehouse.com/collections/all?sort_by=created-descending

Thanks

1 Like

Hey. I can’t see anything changing with that code

Instead try this:

.card-information .card__swatch-item {
  width: 2em;
  height: 2em;
  display: inline-flex;
  padding: 0 !important;
  align-items: center;
  justify-content: center;
  border-radius: 0.25em;
  text-align: center;
  /* use either border */
  border:  1px solid;
  /* or shadow */
  /* different options -- fainter or thicker... 
     box-shadow: 0 0 1px 0px; 
     box-shadow: 0 0 0 1px; 
  */
}

1 Like

@voodoowww123 please add this css to the very end of your base.css file and check, should look like the screenshot below

shopify admin->online store->themes->edit theme code->assets->base.css

.card__swatch-item{    padding-right: 0px !important;  border: 1px solid #ab9d9d; height: 2rem; width: 2rem;}

1 Like

Hi @voodoowww123
Try to add this code to bottom of the file base.css

.card__swatch .card__swatch-item{
border: 1px solid #000;
text-align: center;
aspect-ratio: 1;
display: flex;
align-items: center;
justify-content: center;
padding: 0 10px !important;
}
1 Like

Thank you so much! It’s perfect :slight_smile:

1 Like