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…
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">.
Three-tier pricing cards
<sectiondata-layout="center"data-layout-max="wide"data-layout-gap="2xl"><hgroupdata-layout="stack"data-layout-gap="s"data-layout-align="center"><h2>Simple, transparent pricing</h2><p>Choose the plan that's right for you</p></hgroup><layout-griddata-layout-min="l"data-layout-gap="l"><layout-carddata-variant="outlined"data-padding="l"data-layout="stack"data-layout-gap="l"><hgroupdata-layout="stack"data-layout-gap="xs"><h3class="plan-name">Basic</h3><p><spanclass="price">$9</span><spanclass="price-period">/month</span></p><p><small>Perfect for individuals and small projects</small></p></hgroup><uldata-marker="check"><li>Up to 3 projects</li><li>5 GB storage</li><li>Basic analytics</li><li>Email support</li></ul><ahref="#"class="button secondary full-width">Get Started</a></layout-card><layout-carddata-variant="outlined"data-padding="l"data-featureddata-layout="stack"data-layout-gap="l"><layout-badgedata-shape="ribbon"data-color="primary"data-size="l">Most Popular</layout-badge><hgroupdata-layout="stack"data-layout-gap="xs"><h3class="plan-name">Pro</h3><p><spanclass="price">$29</span><spanclass="price-period">/month</span></p><p><small>Best for growing teams and businesses</small></p></hgroup><uldata-marker="check"><li>Unlimited projects</li><li>50 GB storage</li><li>Advanced analytics</li><li>Priority support</li><li>Custom integrations</li><li>Team collaboration</li></ul><ahref="#"class="button full-width">Get Started</a></layout-card><layout-carddata-variant="outlined"data-padding="l"data-layout="stack"data-layout-gap="l"><hgroupdata-layout="stack"data-layout-gap="xs"><h3class="plan-name">Enterprise</h3><p><spanclass="price">$99</span><spanclass="price-period">/month</span></p><p><small>For large organizations with custom needs</small></p></hgroup><uldata-marker="check"><li>Everything in Pro</li><li>Unlimited storage</li><li>Custom analytics</li><li>24/7 phone support</li><li>Dedicated account manager</li><li>SLA guarantee</li></ul><ahref="#"class="button secondary full-width">Contact Sales</a></layout-card></layout-grid></section>
Required CSS
The card, badge and list come from VB. Only the featured lift and the price typography are bespoke:
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.
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:
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.
Pricing with monthly/yearly toggle
<sectiondata-layout="center"data-layout-max="wide"data-layout-gap="2xl"><headerdata-layout="stack"data-layout-gap="m"data-layout-align="center"><h2>Simple, transparent pricing</h2><p>Choose the plan that's right for you</p><pclass="pricing-toggle"><spanclass="toggle-label"aria-hidden="true">Monthly</span><inputtype="checkbox"role="switch"data-switchid="billing-yearly"/><labelclass="toggle-label"for="billing-yearly">Yearly</label><layout-badgedata-color="success"data-variant="subtle">Save 20%</layout-badge></p></header><layout-griddata-layout-min="l"data-layout-gap="l"><layout-carddata-variant="outlined"data-padding="l"data-layout="stack"data-layout-gap="l"><hgroupdata-layout="stack"data-layout-gap="xs"><h3class="plan-name">Basic</h3><p><spanclass="price price-monthly">$9</span><spanclass="price price-yearly">$7</span><spanclass="price-period">/month</span></p><p><small>Perfect for individuals and small projects</small></p></hgroup><!-- features... --><ahref="#"class="button secondary full-width">Get Started</a></layout-card><!-- more cards... --></layout-grid></section>
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:
Billing toggle styles
/* Billing toggle: the switch is a native checkbox (input[data-switch]) */.pricing-toggle {display: inline-flex;align-items: center;gap: var(--size-m);}.toggle-label {font-weight: var(--font-weight-medium);margin-block: 0;color: var(--color-text-muted);transition: color 0.2s ease;}/* The active side: Monthly while unchecked, Yearly while checked */.toggle-label:has(+ input:not(:checked)),input:checked + .toggle-label {color: var(--color-text);}/* Price visibility follows the switch, no JavaScript */section:has(.pricing-toggleinput:checked) .price-monthly,section:has(.pricing-toggleinput:not(:checked)) .price-yearly {display: none;}