How can I change the color of my cart drawer to #151515?

Hey,

I’ve been trying for the past 2 hours to change the cart drawer background to #151515 but no sign of luck.

This is the store preview: https://priomag.ro/?_ab=0&_fd=0&_sc=1

If anyone has an idea I would really appreciate it.

1 Like

Hi @Denis28

Do you mean like this?

If it is, try this one.

  • From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
  • Find the theme that you want to edit and click on “Actions” and then “Edit code”.
  • 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:
.scd__content.transition-transform.duration-300.translate-x-0.ml-auto.min-h-full.md\:w-\[450px\].bg-white.z-50 {
background: #151515;
    color: white;
}
.scd__content.transition-transform.duration-300.translate-x-0.ml-auto.min-h-full.md\:w-\[450px\].bg-white.z-50 * {
    color: white;
}
.scd__subtotal.flex.justify-between *, .scd-item__quantity.flex.justify-between.rounded * {
    color: black !important;
}
  • And Save.

Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!

1 Like

Thanks a lot! It worked just perfect.

Btw, do you know a method to keep the home page and collections page background to a specific color ( for exemple keep it black ) and the product pages to be white?

I’ve tried to only edit the main background color to black, but the product pages automatically turn black as well, and I those one’s I want to keep them white…