Change color for drawer cart and text on drawer

Topic summary

A user seeks to customize the drawer cart’s color scheme and text styling in their Shopify theme.

Solutions Provided:

Three community members offered CSS-based approaches:

  • Method 1: Add CSS code to theme.liquid file before the </head> tag
  • Method 2: Insert CSS into base.css, style.css, or theme.css in the Assets folder
  • Method 3: Use the Theme Settings > Custom CSS section (recommended for ease of access)

Key CSS Changes:

  • Background color changed to dark blue (#202A44)
  • Text color set to white for visibility
  • Quantity input styling adjusted to maintain readability

Follow-up Request:

The original poster asked for additional customization to make the quantity buttons and borders white. A supplementary CSS snippet was provided to address this.

Status: The discussion appears resolved with working code examples and visual results shared by multiple contributors.

Summarized with AI on November 2. AI used: claude-sonnet-4-5-20250929.

Does anyone know how to do this?

1 Like

Hi @silenceclothing

  1. Go to Online Store → Theme → Edit code.
  2. Open your theme.liquid file
  3. In theme.liquid, paste the below code before

Result:

If my reply is helpful, kindly click like and mark it as an accepted solution.

Thanks!

Hi @silenceclothing

Try this one.

  1. From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
  2. Find the theme that you want to edit and click on “Actions” and then “Edit code”.
  3. 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:
.drawer__inner.gradient.color-scheme-1 {
    background:#202a44;
}

.drawer__inner * {
    color: white;
}

quantity-input.quantity.cart-quantity * {
    color: black;
}

Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better!

Hi @silenceclothing

To complete your requests, please follow these steps:

  1. Go to Shopify Admin > Online Store > Theme > Customize > Theme Settings > Custom CSS https://prnt.sc/i8ljAMlHJUKl
  2. Paste the code provided into the Custom CSS section.
div#CartDrawer .drawer__inner {
    background: #202A44 !important;
}
div#CartDrawer .drawer__inner * {
    color: white !important;
}
div#CartDrawer .drawer__inner quantity-input.quantity.cart-quantity {
    background: #202A44 !important;
}

Here is the result:

I hope this helps

Best,

Daisy

thanks! and how do i make button and border around quantity white?

Hi @silenceclothing

You can try this code there:

div#CartDrawer {
    color: white;
}

Please let me know if it works. Thank you!

Best,
Daisy - Avada Support Team.