Skip to main content

Slide cart CSS customization

Style the slide cart to match your store, change colors, fonts, button styles, and more using custom CSS.

Written by Febby

Candy Rack's slide cart comes with a clean default design that works out of the box. If you want to take it further and match your store's look exactly, you can target any element using CSS.

Below you'll find the full list of available class selectors, practical examples to get you started, and a few tips to make sure your styles apply reliably.

To add your CSS, go to Slide cart > Design in the Candy Rack app menu, find the Custom CSS section, and paste your code there.

List of selectors

These are the stable class selectors you can use to style the slide cart. They follow a consistent candyrack-slider-cart-* naming pattern, so they won't break when the app updates.

Element

Class selector

Cart wrapper

#candyrack-slider-cart

Cart title ("Cart (1)")

.candyrack-slider-cart-header-title

Close (×) button

.candyrack-slider-cart-close-button

Reward bar (free shipping progress)

.candyrack-slider-cart-reward-bar

Cart item container

.candyrack-slider-cart-item-container

Item product name

.candyrack-slider-cart-item-product-details-title

Item current price

.candyrack-slider-cart-item-product-details-price

Item original (crossed-out) price

.candyrack-slider-cart-item-product-details-discounted-price

Discount code badge on item

.candyrack-slider-cart-item-product-details-discount

Remove item button

.candyrack-slider-cart-item-product-details-remove-button

Quantity minus button

.candyrack-slider-cart-item-product-details-quantity-button-minus

Quantity plus button

.candyrack-slider-cart-item-product-details-quantity-button-plus

Upsell offers section title

.candyrack-slider-cart-offers-title

Upsell offer card

.candyrack-slider-cart-offer-item-wrapper

Offer product name

.candyrack-slider-cart-offer-item-header

Offer badge ("SAVE 20%", "RECOMMENDED")

.candyrack-slider-cart-offer-item-badge

Offer price

.candyrack-slider-cart-offer-price

Offer "Add" button

.candyrack-slider-cart-offer-item-add-button

Subtotal label

.candyrack-slider-cart-footer-subtotal-label

Subtotal amount

.candyrack-slider-cart-footer-subtotal-price

Checkout button

.candyrack-slider-cart-footer-checkout-button


Customization examples

Here are some examples using CSS to enhance your slide cart and align it with your store's branding.

Checkout button

Change the background color, text color, and border radius of the checkout button to match your store's CTA style. You can also set a hover state:


.candyrack-slider-cart-footer-checkout-button {
background-color: #1a1a1a !important; /* button background */
color: #ffffff !important; /* button text color */
border-radius: 4px !important; /* corner radius */
font-size: 16px !important;
}

.candyrack-slider-cart-footer-checkout-button:hover {
background-color: #333333 !important;
}

Offer "Add" button

Style the upsell offer add buttons independently from the checkout button:

.candyrack-slider-cart-offer-item-add-button {
background-color: #ff5024 !important;
color: #ffffff !important;
border-radius: 6px !important;
}

.candyrack-slider-cart-offer-item-add-button:hover {
background-color: #cc4020 !important;
}

Offer badges

Customize the "SAVE X%" and "RECOMMENDED" badges to fit your brand:

.candyrack-slider-cart-offer-item-badge {
background-color: #000000 !important; /* badge background */
color: #ffffff !important; /* badge text color */
border-radius: 3px !important;
}

Offers section title

Change the font size or weight of the "Add frequently bought together items" heading:

.candyrack-slider-cart-offers-title {
font-size: 14px !important;
font-weight: 600 !important;
text-transform: uppercase !important;
}

Reward bar

Adjust the progress bar fill, background, and text color to match your brand accent. The reward bar uses CSS custom properties, so no !important needed:

.candyrack-slider-cart-reward-bar {
--cr-slider-cart-reward-bar-progress-fill-color: #000000;
--cr-slider-cart-reward-bar-bg-color: #f9f9f9;
--cr-slider-cart-reward-bar-text-color: #1a1a1a;
}

Custom font

Import a custom Font and apply it to the entire slide cart:

@import url('https://fonts.googleapis.com/css2?family=Inter&display=swap');

#candyrack-slider-cart {
font-family: 'Inter', sans-serif !important;
}

Things to know

The slide cart renders directly in your storefront page, unlike the pop-up, it's not inside an iframe. This means your theme's global CSS variables and fonts may already carry over automatically. Check this in your browser's developer tools before adding duplicate styles.

Most custom rules will need !important to override the slide cart's built-in styles.

Need help with this? Reach out via in-app chat, we're happy to take a look.

Did this answer your question?