StealThis .dev
Pages Medium

SaaS — Billing & Subscription

A finance-grade SaaS billing and subscription page for a fictional analytics product. It pairs a current-plan card showing price, seats, and renewal date with a live usage summary of animated meter bars, a Visa payment-method card, and a downloadable invoice history table. A change-plan dialog reproduces the proration upgrade pattern, an update-payment form validates and reformats card input, and download actions fire contextual toasts. Includes a working light and dark theme toggle, accessible focus traps, and a responsive layout.

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

Code

Billing & Subscription

A trustworthy billing dashboard for a fictional analytics workspace. The top of the page anchors three cards on neutral surfaces with a single indigo accent: a current-plan card with the price, seat count, billing cycle, and renewal date; a usage summary of animated meter bars for seats, API calls, storage, and exports; and a payment-method card rendering a Visa brand mark, the last four digits, and expiry. A standing-status pill and a finance-grade encryption note reinforce trust.

Every control is wired in vanilla JavaScript. “Change plan” opens an accessible upgrade modal where radio options recalculate the new monthly total live and confirming updates the plan badge, price, seats, and next-charge line. “Update payment method” opens a form that reformats the card number and expiry as you type, validates each field inline, then swaps in the new brand and last four. The invoice table offers per-row and bulk downloads that show a brief loading state and emit a toast, and “Manage seats” raises the seat ceiling and refreshes its meter.

The shell ships a working light and dark theme toggle that respects the system preference, modals trap focus and close on Escape or backdrop click, and the layout collapses from three columns to one — with the invoice table re-flowing into stacked, labeled cards down to roughly 360px.

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