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

Pricing

Pricing section patterns for SaaS and product landing pages. Tiered cards, feature comparison tables, and billing toggle options.

Overview

Pricing sections help users understand and compare your offerings. These patterns use data-layout="grid" for responsive card layouts and semantic table markup for feature comparisons, creating accessible and mobile-friendly pricing displays.

Key features:

  • Responsive card grids with data-layout="grid"
  • Highlighted recommended tier
  • Feature comparison tables with row-group headings and a data-table-scroll wrapper
  • Monthly/yearly billing toggle: a native input[data-switch] plus the :has() selector
  • Accessible markup with proper semantics
  • No JavaScript required

Pricing Cards

Three-tier pricing cards in a responsive grid. Each plan is a <layout-card> with an <hgroup> for its name and price and a ul[data-marker="check"] for its features. The middle tier carries data-featured and a <layout-badge data-shape="ribbon">.

Required CSS

The card, badge and list come from VB. Only the featured lift and the price typography are bespoke:

Comparison Table

A feature comparison table with plan columns and feature rows. Uses semantic <table> markup with proper scope attributes for accessibility: each category is its own <tbody> headed by a th scope="rowgroup", and each feature name is a th scope="row". Included and missing features use the .status marker with visually hidden text, so the table reads correctly without the glyphs. The data-table-scroll wrapper lets the table scroll sideways on narrow screens; add data-table-scroll="block" and data-sticky="header" to pin the plan row while scrolling a long table.

Required CSS

VB styles the table itself. These rules centre the plan columns and set the plan-header typography; on a real site, scope them under your pricing section:

With Billing Toggle

Pricing cards with a monthly/yearly billing toggle. The switch is a native checkbox with data-switch, labelled "Yearly". The CSS :has() selector swaps the prices and highlights the active billing period, so no JavaScript is needed.

Required CSS

Add these styles for the billing toggle, alongside the card styles above. VB draws the switch; the :has() rules handle the label state and the price swap:

Layout Configuration

Common data attributes for pricing sections:

Element Attribute Values Description
data-layout="grid" data-layout-min CSS length (e.g., 280px) Minimum card width before wrapping.
data-layout="grid" data-layout-gap xs s m l xl Gap between grid items.
data-layout="center" data-layout-max narrow measure wide Maximum width of pricing section.
data-layout="stack" data-layout-gap xs s m l xl 2xl Vertical spacing between elements.
layout-card data-featured Boolean attribute Highlights the recommended plan.

Usage Notes

  • Tier naming: Use clear, hierarchical names (Basic, Pro, Enterprise) that indicate value progression.
  • Feature ordering: List features in order of importance. Lead with the most compelling features.
  • Highlight recommended: Always highlight one tier as recommended. This guides user decisions and improves conversion.
  • CTAs: Use primary buttons for the recommended plan and secondary buttons for others. Use "Contact Sales" for enterprise tiers.
  • Pricing transparency: Show all costs upfront. If there are per-user or usage-based costs, make them clear.
  • Yearly savings: When offering discounts for annual billing, display the savings prominently (e.g., "Save 20%").
  • Comparison tables: Use tables for detailed feature comparisons. Cards work better for quick overviews.
  • Mobile considerations: Cards stack naturally on mobile. Tables may need horizontal scrolling.
  • Accessibility: Use proper table semantics with scope attributes. Ensure toggle has proper labeling.

Related

Layout Grid

Grid layout element documentation

Layout Stack

Stack layout element documentation

Call to Action

CTA section patterns

Features

Feature grid patterns

↑