Gradient Buttons on Squarespace: CSS Tutorial
Flat color buttons work, but they rarely stand out on a page full of competing elements. Gradient buttons introduce depth and a touch of sophistication, and for brands leaning on strong calls to action, that small shift in visual weight can make the difference in where a visitor's eye lands first.
Table of contents
Add gradient buttons to your Squarespace site
What are gradient buttons in Squarespace
How to create gradient buttons on Squarespace
How gradient buttons work for visitors
Why use gradient buttons
FAQ
1. Add gradient buttons to your Squarespace site
Gradient buttons blend multiple color tones smoothly across the background instead of relying on a single solid color, giving otherwise flat calls to action a sense of depth.
2. What are gradient buttons in Squarespace
We use gradient buttons most often to emphasize primary calls to action, create modern hero section buttons, and reinforce dynamic brand identities that a flat color alone can't capture, much as a button shadow effect adds depth through light rather than color.
3. How to create gradient buttons on Squarespace
Step 1: Open the Custom CSS panel
Log into your Squarespace account.
Open your website dashboard.
Click Pages.
Scroll down and select "Custom CSS" under "Custom Code."
Step 2: Add the gradient button CSS
// Gradient buttons - Typza.com //
.sqs-button-element--primary, a.sqs-block-button-element--primary { background: linear-gradient(90deg, #166FD4 10%, #0f5aa8 50%, #123643 100%) !important; color: #ffffff !important; transition: opacity 0.3s ease; }
.sqs-button-element--primary:hover, a.sqs-block-button-element--primary:hover { opacity: 0.9; }
This applies a horizontal gradient, forces white text, adds a smooth opacity transition, and slightly dims the button on hover.
Step 3: Save and test
Click Save and review the buttons across hero sections, forms, and pricing pages, then test mobile responsiveness.
Step 4: Customize the gradient
Adjust the values inside linear-gradient(90deg, color1, color2, color3). Try alternative angles like 135deg for a diagonal gradient, adjust the color stop percentages, or simplify to just two colors. Whatever you land on, verify the text stays accessible against the background.
4. How gradient buttons work for visitors
Gradients increase visual prominence by naturally drawing the eye, differentiating primary actions from everything else on the page, reinforcing quality perception, and making conversion points feel intentional rather than accidental.
5. Why use gradient buttons
Strategic use elevates brand sophistication, creates stronger visual contrast, reinforces modern positioning, and increases perceived value, the same subtle polish a button scale up hover effect brings to a call to action, though improper use risks inconsistent behavior and accessibility issues.
The bottom line
A gradient button costs you nothing in load time and gives a flat CTA real depth and modern polish, but the effect only works if you check text contrast against every color stop, not just the average. Done right, it's one of the fastest ways to make a template feel custom rather than off-the-shelf. Done carelessly, it's an accessibility problem hiding behind good intentions.
FAQ
What are gradient buttons and how do they differ from flat buttons?
Gradient buttons use a linear-gradient background that blends two or more colors across the button, rather than a single flat fill, adding visual depth and a more modern feel.
How do I control the angle of a gradient button in CSS?
The linear-gradient() function takes a angle value (like 90deg or 135deg) as its first argument, which determines the direction the colors blend across the button.
Can I animate a gradient on hover?
Yes, common approaches include shifting the gradient's background-position on hover or changing the opacity/color stops, both of which need a transition property to animate smoothly.
Do gradient buttons cause accessibility issues?
They can, if the text color doesn't have sufficient contrast against every part of the gradient, not just its darkest or lightest point, so each color stop should be checked against WCAG contrast ratios.
Will gradient buttons work with Squarespace's built-in button styles?
Yes, you can override the background property of any built-in button class with a custom gradient via Custom CSS without affecting the button's shape or spacing.
More insights
11 min
From The Row to Aman Resorts, these 10 minimalist luxury websites prove that restraint — not decoration — is what makes a brand feel expensive.
11 min
A website can look attractive and still be quietly driving visitors to your competitors — here's how to spot the functional issues hiding behind good design.
12 min
Skipping clear expectations with clients almost sank our early web design projects — here's the process we built after learning that lesson the hard way.
11 min
Flashy features like auto-play video and stacked pop-ups feel modern, but they're often the exact thing driving your visitors away before they convert.
12 min
One of the simplest conversion fixes is also the most overlooked: make your call-to-action actually look and read like a button, not a suggestion.
11 min
Animations once felt like the mark of a modern website — until we noticed they were slowing sites down and pulling attention away from what actually converts.
10 min
Homepages and service pages get all the attention — but the page most businesses are missing entirely is the one that actually builds trust: a case studies page.
9 min
With a limited budget, skip the flashy extras — the highest-return investment for any website is clear UX and high-quality visuals.
11 min
You don't need a redesign to see real improvement — these four small, fast fixes can noticeably boost how your website performs today.
12 min
Flashy effects don't make a website feel premium — consistent color, clean typography, and generous whitespace do. Here's why that small discipline matters so much.
11 min
A gorgeous website that loads slowly and confuses visitors will always lose to a plainer one that performs — here's why looks are the wrong priority.
7 min
A video background can make your Squarespace site feel dynamic and premium — if it's set up right. Here's the step-by-step process and the pitfalls to avoid.
8 min
Squarespace has no one-click "duplicate site" button, but there are safe, reliable ways to clone your site for testing, backups, or new projects.
9 min
Squarespace and WordPress solve very different problems — here's an honest, side-by-side breakdown to help you pick the platform that actually fits your goals.
8 min
Moving off WordPress doesn't have to risk your rankings or your content — follow this step-by-step migration plan to switch platforms cleanly.
8 min
Need more control than Squarespace's blocks allow? Here are the three safe ways to add custom HTML to your site, and the mistakes that break pages.
8 min
Squarespace has no built-in "download all" button for your images — here's the safe workaround to recover full-quality files whenever you need them.
9 min
Thinking about a career in web design? Here's the realistic, step-by-step path from design fundamentals to a portfolio that actually gets you hired.
8 min
When your Squarespace site goes down or starts acting strange, the cause is almost always one of a handful of predictable culprits — here's how to find and fix it fast.
9 min
A simple site typically takes about three weeks and a bigger one about five, but that estimate only holds if feedback comes back fast. Here's the real timeline, stage by stage.
9 min
Mobile-first website design just means building for a phone screen first, then working up to bigger screens. It sounds like a small technical detail — it isn't.
9 min
Website visitors leave without contacting you for one boring reason far more often than any exciting one: you never gave them an obvious way to. Here are six fixable causes.
10 min
It's hard to judge a web designer until after you've already paid them. Here are seven things to check beforehand so you don't find out the hard way.
9 min
Most website project delays trace back to one thing: nobody prepared what the designer actually needed before the project began. Here are seven things to sort out first.
8 min
A template and a custom website can both technically get you online — the honest difference shows up later, once you're trying to stand out and convert, not just be found.
8 min
Matching your website to your brand doesn't mean an exact copy of your logo file. Here's what genuinely needs to stay fixed, and where print-first brand guidelines have room to flex on screen.
9 min
"It depends" isn't a dodge — a professional website's cost genuinely hinges on scope, copywriting, and features. Here's what actually drives the price, and what to budget beyond the initial quote.
9 min
The price tag on a website is a poor signal on its own. What actually separates a cheap build from an expensive one is the strategy, copywriting, and technical care underneath it.
10 min
An outdated website doesn't announce itself with an error message — it just quietly loses visitors to a more current-looking competitor. Here are seven signs to check for.
11 min
If your Squarespace site gets traffic but not conversions, the cause is usually one of three things: unclear messaging, friction in the path, or a lack of trust signals.


