StealThis .dev
Pages Medium

SaaS — Pricing Page

A conversion-ready SaaS pricing page with a monthly to annual billing toggle that reveals a 20 percent savings, four plan cards including a highlighted most-popular tier, and a per-seat slider that recalculates the Team price live. Includes a scrollable feature-comparison table, an expandable FAQ accordion, a contact-sales band, and a working light and dark theme toggle. Built with semantic, accessible, responsive vanilla HTML, CSS, and JavaScript.

Open in Lab
html css vanilla-js
Targets: JS HTML

Code

Pricing Page

A clean, trustworthy pricing page for a fictional analytics product. Four plan cards — Starter, Team, Business, and Enterprise — sit on neutral surfaces with a single indigo accent, and the Team plan is highlighted as the most popular tier with a soft gradient and badge. A hero billing switch flips every price between monthly and annual rates and reveals a “Save 20%” badge when annual is active.

The Team card embeds a seat slider: dragging it from 3 to 50 seats recalculates the displayed price live and updates the per-seat note. Below the cards, a horizontally scrollable feature-comparison table contrasts all four plans with checkmarks and per-tier values, and the popular column stays visually emphasized. An FAQ accordion expands one answer at a time, and a gradient contact-sales band closes the page.

Every interaction is wired in vanilla JavaScript: the billing toggle, seat slider, plan CTAs (each fires a contextual toast), the accordion, and a light/dark theme toggle that respects the system preference. Controls are keyboard-usable with visible focus rings and proper ARIA roles, and the layout collapses from four columns to two to one down to roughly 360px.

Illustrative SaaS UI only — fictional product, metrics, and billing. No real backend.