I’m using horizon theme in that I want to make the background as gradient, how can I do it
website: https://firstdraftstudio.myshopify.com/
password: FD
A user wants to add a gradient background to their Shopify store using the Horizon theme.
Solution provided:
Multiple experts recommend adding custom CSS code to achieve this effect:
body element with a linear-gradient propertybody { background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%) !important; }Customization tips:
135deg, 90deg) and hex color values to match desired designThe discussion remains open with no confirmation from the original poster on implementation.
I’m using horizon theme in that I want to make the background as gradient, how can I do it
website: https://firstdraftstudio.myshopify.com/
password: FD
Hey,
If you are looking to change the background of the whole body of your store then you need to follow these steps.
Go to Shopify Admin >> Online Store >> Edit Code >> styles.css
In the end of styles.css paste the following code below.
body {
background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%) !important;
}
You can change the gradient background values based on your selection.
If this was helpful don’t forget to like it and Mark as Solution.
Thanks
Hello @sivadarshan4331 ,
I hope you are well!
Basically, you can choose the hex color from the gradient generator by visiting - https://cssgradient.io/, copy the code and paste it to the top of the theme.css or base.css with the body tag. For example-
body{
background: #2A7B9B;
background: linear-gradient(90deg, rgba(42, 123, 155, 1) 0%, rgba(87, 199, 133, 1) 50%, rgba(237, 221, 83, 1) 100%);
}
This will change the gradient as per your requirement.
Hi @sivadarshan4331 ,
You can add a gradient background in the Horizon theme using a small piece of custom CSS. Here’s how:
/* Gradient background for the entire page */
body {
background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
}
/* Optional: ensure sections with white backgrounds become transparent */
.section, .main-content, .content-wrapper {
background: transparent !important;
}
Tip:
You can adjust the gradient colors (#ff9a9e → #fad0c4) or the angle (135deg) to get the look you want.
If you only want the gradient on a specific section (like the hero or footer), target that section’s class instead of body.
If this helps you achieve the look you want, don’t forget to mark it as an Accepted Solution so others can find it too!