CTA
Call to action section patterns for landing pages and marketing sites. Centered banners, split layouts, and background image CTAs.
Overview
Call to Action (CTA) sections are critical conversion points on marketing pages. They typically appear after feature sections or at the bottom of landing pages, prompting users to take the next step. These patterns use data-layout="cover" for vertical centering and data-layout="center" for horizontal alignment.
Key features:
- Vertical centering with
data-layout="cover" - Multiple layout variants (centered, split, full-width)
- Background image support with overlays
- Inline form integration for lead capture
- Button groups with
data-layout="cluster" - Responsive without media queries
Centered CTA
The most common CTA pattern: centered headline, supporting text, and action buttons. Perfect for page endings and conversion sections.
Split CTA with Form
Text on one side, form or image on the other. Uses data-layout="sidebar" for a flexible two-column layout that stacks on narrow viewports. Great for newsletter signups and lead capture.
Inline Form Styles
Add these styles for the inline email form:
With Background Image
Full-width background image with a dark overlay for text readability. The overlay uses --color-overlay-strong from design tokens. Great for creating visual impact.
Required CSS
Add these styles to support background images with overlay:
For buttons over dark backgrounds, add these ghost button overrides:
Layout Configuration
Common data attributes for CTA sections:
| Layout | Attribute | Values | Description |
|---|---|---|---|
data-layout="cover" |
data-layout-min |
CSS length (e.g., 50vh, 300px) |
Minimum height of the CTA section. |
data-layout="cover" |
data-layout-padding |
none s m l xl |
Padding inside the cover. |
data-layout="center" |
data-layout-max |
narrow normal wide prose |
Maximum content width. |
data-layout="sidebar" |
data-layout-sidebar-width |
narrow normal wide |
Width of the sidebar column. |
data-layout="cluster" |
data-layout-justify |
start center end between |
Horizontal alignment of buttons. |
Usage Notes
- Placement: CTAs work best after feature sections, testimonials, or at the bottom of landing pages. Avoid placing multiple CTAs too close together.
- Button text: Use action-oriented language that clearly states the benefit (e.g., "Start Free Trial" instead of "Submit").
- Primary vs secondary: Use one primary button for the main action and a secondary/ghost button for alternative actions.
- Contrast: Ensure sufficient color contrast between text and background, especially with background images. Use
--color-overlay-strongfor dark overlays. - Height: Use
50vhor less for CTAs to differentiate from full-height hero sections. - Forms: Keep inline forms simple with one or two fields. Use full forms in split layouts for more complex signups.
- Mobile: Split layouts stack automatically on narrow viewports thanks to
data-layout="sidebar".
Related
Hero Patterns
Above-the-fold hero sections
Layout Cover
Cover layout element documentation
Layout Center
Center layout element documentation
Buttons
Button component documentation