About this set
Digital business cards that people can act on. The business card is a navy card with a logo mark, the company name, a large name and title, and four contact rows for email, phone, website and address, ending in a Save contact (.vcf) button. The contact card with details is a light card with an initials avatar and labelled rows for email, direct line, office and website, plus Save contact and Book a call. Email and phone are real mailto: and tel: links, and each has a copy button that copies the value, swaps its icon for a tick for two seconds and writes Email address copied in a status line that screen readers announce. Save contact downloads a vCard 3.0 file. The link already holds the vCard as a data: URL, so it works without JavaScript, and the script rebuilds it from the visible fields marked data-vc, so editing the name or number on the card keeps the download in step. Copying uses the Clipboard API with a fallback for pages that are not served over HTTPS. Use them for team pages, event badges, link-in-bio pages and email footers on the web.
What’s included
- Copy buttons for email and phone with a spoken confirmation
- Save contact downloads a .vcf built in the browser
- vCard works without JavaScript as a data: URL
- Real mailto: and tel: links on every value
- Dark business card and a light detailed contact card
Accessibility
Copy buttons are labelled Copy email address and Copy phone number, and each card has a role="status" line that announces what was copied. The Save contact link includes the person's name in hidden text. Links and buttons show a 3px focus outline, icons are hidden from screen readers, and colour transitions stop under prefers-reduced-motion.
Customise it
Set --bc-bg, --bc-ink, --bc-muted, --bc-accent and --bc-line on .bc (the light card overrides them in .bc-light). Edit the visible text and the data-copy values; the vCard follows the data-vc fields. In Tailwind change the colour utilities such as bg-[#0f1f38] and bg-[#f2b134].






