Section
Gradient Newsletter CTA — Gradient Mesh
Gradient Mesh newsletter layout: Gradient cta.
- Section
- Tailwind
- HTML
- MIT
Preview
Live section
9:41 100%
devsnips.dev/library/tailwind/sections/newsletter/gradient-mesh/ fluid · no fixed width 100%
Install
Add to your project
npx devsnips add Tailwind/Sections/Newsletter/gradient-mesh Tailwind/Sections/Newsletter/gradient-mesh <!--
Snippet Name: Gradient Newsletter CTA — Gradient Mesh
Description: Gradient Mesh newsletter layout: Gradient cta.
Author: DevSnips Contributors
Usage Example: Drop this snippet into any Tailwind CSS page.
-->
<style>
/* DevSnips style-helper classes (self-contained snippet) */
.f-sans{font-family:'Outfit',sans-serif}.f-mono{font-family:'Outfit',sans-serif}.f-disp{font-family:'Outfit',sans-serif}
.gm-bg{background:linear-gradient(120deg,#7c3aed,#ec4899,#f97316,#06b6d4);background-size:300% 300%;animation:gm 16s ease infinite}
@keyframes gm{0%{background-position:0 50%}50%{background-position:100% 50%}100%{background-position:0 50%}}
</style>
<section class="relative w-full py-20 sm:py-28 text-white" data-section="gradient-mesh">
<div class="mx-auto max-w-7xl px-5 sm:px-6 lg:px-8">
<div class="mb-10 text-center mx-auto"><p class="mb-4"><span class="inline-flex items-center gap-1.5 rounded-full bg-white/20 border border-white/30 px-3 py-1 text-[11px] font-semibold uppercase tracking-wide text-white"><svg class="h-3.5 w-3.5" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><rect width="20" height="16" x="2" y="4" rx="2"/><path d="m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7"/></svg> Newsletter</span></p><h2 class="f-disp text-3xl sm:text-4xl lg:text-5xl font-bold tracking-tight text-center mx-auto">Stay in the loop</h2><p class="mt-4 max-w-2xl text-center mx-auto text-base sm:text-lg leading-relaxed text-white/70">Monthly product updates and ideas. No spam, unsubscribe anytime.</p></div><div class="relative overflow-hidden rounded-3xl p-8 sm:p-12 text-center text-white" style="background:linear-gradient(120deg,#8b5cf6,#ec4899)"><div class="absolute inset-0 opacity-20" style="background:radial-gradient(circle at 80% 20%, #fff, transparent 50%)" aria-hidden="true"></div><div class="relative z-10"><h3 class="f-disp text-2xl sm:text-3xl font-bold">Join the inner circle</h3><p class="mt-3 text-sm text-white/80 max-w-2xl mx-auto">Monthly insights from the team. No fluff.</p><div class="mt-6"><form class="flex flex-col sm:flex-row gap-2 max-w-2xl mx-auto w-full"><label for="nl-email" class="sr-only">Email address</label><input id="nl-email" type="email" placeholder="you@email.com" class="flex-1 rounded-full px-4 py-3 bg-white/20 border border-white/30 text-white placeholder:text-white/60 focus:outline-none focus:ring-2 focus:ring-white/50" aria-label="Email"><button type="submit" class="rounded-full bg-white px-6 py-3 font-bold hover:bg-white/90"><svg class="h-4 w-4" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><path d="m22 2-7 20-4-9-9-4Z"/><path d="M22 2 11 13"/></svg> Subscribe</button></form></div></div></div>
</div>
</section> # Gradient Newsletter CTA — Gradient Mesh
> Gradient Mesh newsletter layout: Gradient cta.

## Features
- gradient CTA
- full-bleed color
- glass input
- white CTA button
- centered
## Responsive support
- Mobile-first layout
- Breakpoints: `sm` (640px), `md` (768px), `lg` (1024px)
- Stacks gracefully on small screens, expands on large viewports
## Browser support
- Chrome (latest)
- Firefox (latest)
- Safari (latest)
- Edge (latest)
## Usage
1. Copy the markup from `code.html` into your Tailwind CSS project.
2. Include the corresponding Google Fonts in your document `<head>` if the style requires them.
3. The snippet is self-contained and copy-paste ready — no build step or JavaScript required.
## Design language
**Gradient Mesh** — part of the DevSnips Tailwind Sections library. Every section is
original, accessible, and production-ready.
## Files
- `preview.html` — full standalone preview page (Tailwind CDN + fonts)
- `code.html` — copy-paste snippet only (no `<head>` / CDN)
- `metadata.json` — structured metadata
- `README.md` — this file 20 lines UTF-8 · LF · Spaces: 2
Continue browsing