# Marketing Hero Section: Gradient Background

A hero on a rich gradient background with a centered headline, subtext, and CTA. A bold, color led opener for product and campaign landing pages.

- Page: https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/gradient-background
- Collection: [Marketing](https://www.shadcn-ui-blocks.com/blocks/marketing), Free tier
- Group: [Hero Sections](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections)
- Created: 2026-06-14
- Preview image: https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/gradient-background.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/marketing-hero-sections-gradient-background
```

A free block: it installs with no account or key. Or install it by URL: `npx shadcn@latest add "https://www.shadcn-ui-blocks.com/r/marketing-hero-sections-gradient-background.json"`.

## Depends on

- npm packages: class-variance-authority, radix-ui
- shadcn/ui components: button
- Installs to: `@/components/blocks/marketing/hero-sections/gradient-background`

## About this block

Gradient Background is a centered hero with a layered ambient glow behind
the content. Two large blurred shapes sit off the top of the viewport and
bleed downward, giving the page an atmospheric color wash. Within that, a
short overline phrase sits above a bold headline, followed by a single
paragraph of supporting text, and then a pair of side by side buttons, a
primary action and an outline secondary action.

The overline, headline, and body copy are independent strings, so you can
swap them freely without touching the layout. The two buttons can be
relabeled or reduced to one if your page only needs a single call to action.

## When to use

This layout suits a product or campaign page that needs to feel distinctive
from the moment a visitor lands. The color wash draws attention without
requiring an image or illustration, which makes it a practical opening for
an AI assistant product where the interface itself is not yet visual enough
to screenshot. It is a stronger opening than a plain white centered hero
when you want warmth and personality, and less distracting than a looping
video or animated gradient when your copy needs to carry the message.

A natural flow around it on a Marketing (Legacy) page:

**Before**

- [Announcement Banners](https://www.shadcn-ui-blocks.com/blocks/marketing/announcement-banners) to surface
  a launch or version note above the fold before the hero loads

**After**

- [Feature Sections](https://www.shadcn-ui-blocks.com/blocks/marketing/feature-sections) to expand on the
  headline's promise with specifics after the visitor is oriented
- [Social Proof Hero](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/social-proof-hero) if
  you want to follow up with logos and ratings before the main body

## What you can display

The simplest use is a product tagline and a short description, but the frame
works for several other scenarios:

- **A campaign headline.** Use the overline for the campaign name and the
  heading for the core message so seasonal or event pages stay focused.
- **An AI product pitch.** Lead with what the assistant does in one sentence
  and let the color wash signal that this is something new, not another
  plain SaaS tool.
- **A waitlist opener.** Swap the secondary button for a link to a sign up
  form and let the subtext explain what the visitor is joining.

> Tip: keep the body copy to two or three lines so the buttons stay visible
> above the fold on most laptops without scrolling.

## More in Marketing Hero Sections

- [3D Isometric Hero](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/3d-isometric-hero)
- [Animated Features Hero](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/animated-features-hero)
- [Animated Gradient](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/animated-gradient)
- [Animated Text Hero](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/animated-text-hero)
- [Centred With Image](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/centred-with-image)
- [Chat Preview Hero](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/chat-preview-hero)
- [Countdown Hero](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/countdown-hero)
- [Gradient Mesh Hero](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/gradient-mesh-hero)
- [Image Carousel Hero](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/image-carousel-hero)
- [Image With Reviews](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/image-with-reviews)
- [Interactive Metrics](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/interactive-metrics)
- [Mobile App Hero](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/mobile-app-hero)
- [Multi-Step CTA Hero](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/multi-step-cta-hero)
- [Particles Background Hero](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/particles-background-hero)
- [Product Carousel Hero](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/product-carousel-hero)
- [Progress Tracker Hero](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/progress-tracker-hero)
- [Search Bar](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/search-bar)
- [Simple Centred](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/simple-centred)
- [Social Proof Hero](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/social-proof-hero)
- [Split Content Hero](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/split-content-hero)
- [Split Image Hero](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/split-image-hero)
- [Split With Video](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/split-with-video)
- [Testimonial Carousel](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/testimonial-carousel)
- [Trust Indicators](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/trust-indicators)
- [Video Background Hero](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/video-background-hero)
- [With 3D Mockup](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/with-3d-mockup)
- [With API Preview](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/with-api-preview)
- [With App Showcase](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/with-app-showcase)
- [With Bento Grid](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/with-bento-grid)
- [With Code Preview](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/with-code-preview)
- [With Content Tabs](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/with-content-tabs)
- [With Dashboard](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/with-dashboard)
- [With Email Input](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/with-email-input)
- [With Feature Cards](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/with-feature-cards)
- [With Feature Timeline](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/with-feature-timeline)
- [With Integration Showcase](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/with-integration-showcase)
- [With Product Screenshots](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/with-product-screenshots)
- [With Team Grid](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/with-team-grid)
- [With Terminal](https://www.shadcn-ui-blocks.com/blocks/marketing/hero-sections/with-terminal)
