StealThis .dev

Insurance — Premium Breakdown

A reassuring premium breakdown card with a CSS stacked donut showing base cover, risk factors, add-ons, taxes and discounts, a line-item list with amounts, a savings-highlighted discounts section, and a billing-cycle toggle that recalculates the totals live.

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

Code

Premium Breakdown

A calm, trust-forward summary of exactly what a customer is paying for. A pure-CSS stacked donut charts the five components of the premium — base cover, risk factors, add-ons, taxes and the discount credit — alongside a colour-keyed legend and a big confident annual figure in the middle.

Below the chart a clear line-item list breaks every charge down to the cent, and a dedicated discounts applied panel highlights the total savings in trust green with each qualifying discount listed. A monthly / annual billing toggle recalculates the headline number, the line items and the savings live, all in vanilla JS with no libraries.

Illustrative UI only — not a real insurance quote.