Skip to main content

Change the upsell variant selector colors

Customize the background and text color of variant selectors in the upsell section.

Updated this week

Overview

Upcart allows you to change the colors used for upsell variant selectors using simple custom CSS. This is a quick way to align your cart’s appearance with your brand and improve the customer experience during product selection.

This customization is ideal for store owners or developers with basic CSS knowledge.


Where to find the custom CSS editor

  1. Go to Upcart > Cart Editor > Settings > Custom CSS

  2. Scroll down to the input area and paste your CSS code

  3. Click Save

  4. Refresh your storefront to preview the changes live


Example CSS for variant selector styling

.upcart-upsell-item-variant-selector {   color: white !important;   background-color: #008060 !important; }

How to customize

  • color: Sets the text color

  • background-color: Sets the background of the variant selector box

You can use different types of values, such as:

  • Named colors (example: black, white, red)

  • Hex codes (example: #000000)

  • RGB values (example: rgb(255, 0, 0))

Example:

.upcart-upsell-item-variant-selector {   color: #000000 !important;   background-color: #f3f4f6 !important; }

This lets you create a variant selector style that either blends in with your store’s design or stands out to grab attention.


Still need help?

For additional customizations, we recommend working with a Shopify Expert. They can assist with adding HTML, CSS, or JavaScript to your cart drawer.

Did this answer your question?