How can I alter the background color of variant badges in Dawn?

Hi,

I want to edit the background color of the 2 variant badges on my product page. if possible i would like a gradient color for the first badge.

Thanx for your help

Alex

Hi @Alex087

I hope you are doing good and welcome to the Shopify Community!
I am San from MS Web Designer.

Please add this css in your bottom of the base.css file:

.product-form__input input[type=radio]:checked+label {background: #7069bc54!important; color: #000 !important;}

Regards,

San

hi San,

Thanx for your help,

Is it possible to have a different color for each variant?

Hi @,

You can try this code by following these steps:

Step 1: Go to Online Store->Theme->Edit code.

Step 2: Search file base.css

Step 3: Paste the below code at the bottom of the file → Save

.card__badge .badge{
background:black
}

Hope my solution works perfectly for you!

Best regards,

Oliver | PageFly

Not possible.