All things Shopify and commerce
Does anyone know how to fix this?
I want the background a different gradient and the text to be black as it is in “checkout”
I am using the refresh theme
Solved! Go to the solution
This is an accepted solution.
Hi @Riverline
I have written custom CSS for this solution. Please follow below steps and let me know your feedback.
Follow these Steps:
1) Go to Online Store
2) Edit Code
3) Find theme.liquid file
4) Add the following code just above tag </head>
Note: You can update value of --gradient-start and --gradient-end to change the color of gradient as per your need.
<style>
#CartDrawer .gradient {
--gradient-start: 254, 0, 0;
--gradient-end: 0, 222, 0;
--color-foreground: #000;
background: linear-gradient(0deg, rgba(var(--gradient-start), 0.2), rgba(var(--gradient-end), 0.78) 90%)!important;
}
#CartDrawer * {
color: var(--color-foreground)!important;
}
</style>
If you require further help to optimize your store, please don’t hesitate to reach out. If you find this information useful, a Like would be greatly appreciated. And if this solves the problem, please Mark it as Solution!
Best Regards,
Makka
This is an accepted solution.
Hi @Riverline
I have written custom CSS for this solution. Please follow below steps and let me know your feedback.
Follow these Steps:
1) Go to Online Store
2) Edit Code
3) Find theme.liquid file
4) Add the following code just above tag </head>
Note: You can update value of --gradient-start and --gradient-end to change the color of gradient as per your need.
<style>
#CartDrawer .gradient {
--gradient-start: 254, 0, 0;
--gradient-end: 0, 222, 0;
--color-foreground: #000;
background: linear-gradient(0deg, rgba(var(--gradient-start), 0.2), rgba(var(--gradient-end), 0.78) 90%)!important;
}
#CartDrawer * {
color: var(--color-foreground)!important;
}
</style>
If you require further help to optimize your store, please don’t hesitate to reach out. If you find this information useful, a Like would be greatly appreciated. And if this solves the problem, please Mark it as Solution!
Best Regards,
Makka
Let me try this out!!
It worked!! Now say I wanted to change the color to this red listed below how would I edit the code to get the background to the red I wanted set
Basically how do I change the green color
NEVERMIND I GOT IT THANKS FIR THE HELP!!!
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025