Vanilla Breeze v0.7.4

Vanilla Breeze v0.7.4 released

0.7.4 gives the Ambient pack weather. A page names one feed URL on its own site, and the pack sets data-weather from it, uses its sunrise and sunset for dawn and dusk, and never shows a stale observation. Helpers for producing the feed from Open-Meteo are included. Ambient p…

Read the release notes

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 section.hero for vertical centering and centered text, data-padding for fluid block padding, and <layout-center> for horizontal alignment.

Key features:

  • Vertical centering with section.hero
  • Multiple layout variants (centered, split, full-width)
  • Background image support with overlays
  • Inline form integration with form.inline
  • 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. section.hero centers the content, .alt adds the raised surface, and data-padding swaps the hero's large padding for the fluid section padding.

Split CTA with Form

Text on one side, form or image on the other. Uses <layout-sidebar> for a flexible two-column layout that stacks on narrow viewports, inside a plain section.alt so the text stays start-aligned. Great for newsletter signups and lead capture.

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
section class hero alt hero centers content with a 50vh minimum height; alt adds the raised surface background.
section data-padding (empty) small xsmall none Fluid block padding for the section.
layout-center data-layout-max narrow normal wide prose Maximum content width.
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-strong for dark overlays.
  • Height: section.hero has a 50vh minimum, which keeps a CTA shorter than a full-height hero section.
  • 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 <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

↑