StealThis .dev

Banking — Balance Card

A trust-first fintech balance card you can drop into any banking dashboard. Shows account name and type, a masked card number, and a balance set in tabular figures with a mini sparkline trend. A per-card and global hide/show toggle blurs sensitive numbers, status pills flag activity and due dates, and quick actions sit one tap away. Ships as three real-feeling variants — checking, high-yield savings, and a credit card with a utilisation bar — in a responsive grid, vanilla JS only.

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

Code

Balance Card

A reusable account balance card built for banking and fintech dashboards. Each card pairs an account emblem, name, and type with a masked number (•••• 4242) and a large balance rendered in tabular figures so digits never shift width. A compact SVG sparkline draws in on load to show the recent trend, and a small meta line surfaces the month-over-month change, interest earned, or minimum payment due.

Three variants ship in a responsive grid: an Everyday Checking account with credits in green, a High-Yield Savings account showing its APY, and a Platinum Rewards credit card with a utilisation bar and a colour-coded due-date pill. Each card carries its own status pill (active, APY, due in 9d) and a row of quick actions — Send, Request, Deposit, Pay card — with a primary call to action and an overflow button.

Privacy is built in. A header toggle hides or reveals every balance at once by blurring the sensitive numbers, sparkline, and utilisation bar, while the per-card overflow action hides a single account. The chosen state persists in localStorage, a small toast() helper confirms each action, and everything stays keyboard-usable with visible focus rings, ARIA live regions, and AA-contrast colour. The layout collapses to a single column and stays legible down to 360px.

Illustrative UI only — not real banking software or financial advice.