Cards & content / Badges & tags
Dark Tag Chip
Small 4px-radius near-black chip with white label overlaid on photography, used to mark customer category.
Rebuilt from mercury.com in the Twilight Ledger style.
npx shadcn@latest add https://justyoink.it/r/twilight-ledger-0e1ecf/blocks/quote-tag-chip.json
Looks exactly like mercury.com: brings its fonts and colours, namespaced so your own theme stays untouched.
npx shadcn@latest add https://justyoink.it/r/twilight-ledger-0e1ecf/mine/quote-tag-chip.json
Restyled to your project: uses your shadcn colours, fonts and radius, so it matches the rest of your app. Layout, type sizes and motion stay as designed.
Usage
Props: label (chip text), quote, name, role, imageSrc. The chip is a 4px-radius near-black label positioned over the photo; renders standalone with defaults.
components/quote-tag-chip.tsx
export default function DarkTagChip({ label = "Fintech", quote = "Unlike most legacy tools, Northwind is built around the product. Every task can be finished inside the app in a minute or two.", name = "Elena Marsh", role = "Founder, Altura", imageSrc = "https://yoink-app.fly.dev/stock/people-1.jpg" }: { label?: string; quote?: string; name?: string; role?: string; imageSrc?: string }) { return ( <section className="bg-canvas px-4 py-12 sm:px-8"> <div className="relative mx-auto aspect-[4/5] w-full max-w-[1024px] overflow-hidden rounded-xl sm:aspect-[2/1]"> <img src={imageSrc} alt="Customer portrait" width={1600} height={1200} className="absolute inset-0 h-full w-full object-cover" /> <div aria-hidden="true" className="absolute inset-0 bg-[linear-gradient(90deg,rgba(0,0,0,0.45)_0%,rgba(0,0,0,0.2)_40%,transparent_70%)]" /> <div aria-hidden="true" className="absolute inset-x-0 bottom-0 h-2/3 bg-[linear-gradient(0deg,rgba(0,0,0,0.55),transparent)] sm:hidden" /> <span className="absolute left-8 top-8 rounded-[4px] bg-[#0b0b12] px-2 py-1.5 text-label leading-none text-ink">{label}</span> <figure className="absolute bottom-8 left-8 right-8 max-w-[380px] text-ink"> <blockquote className="text-lead"> <p className="-indent-2">“{quote}”</p> </blockquote> <figcaption className="mt-6"> <div className="text-lead">{name}</div> <div className="text-lead text-ink-muted">{role}</div> </figcaption> </figure> </div> </section> ); }export default function DarkTagChip({ label = "Fintech", quote = "Unlike most legacy tools, Northwind is built around the product. Every task can be finished inside the app in a minute or two.", name = "Elena Marsh", role = "Founder, Altura", imageSrc = "https://yoink-app.fly.dev/stock/people-1.jpg" }: { label?: string; quote?: string; name?: string; role?: string; imageSrc?: string }) { return ( <section className="bg-background px-4 py-12 sm:px-8"> <div className="relative mx-auto aspect-[4/5] w-full max-w-[1024px] overflow-hidden rounded-2xl sm:aspect-[2/1]"> <img src={imageSrc} alt="Customer portrait" width={1600} height={1200} className="absolute inset-0 h-full w-full object-cover" /> <div aria-hidden="true" className="absolute inset-0 bg-[linear-gradient(90deg,rgba(0,0,0,0.45)_0%,rgba(0,0,0,0.2)_40%,transparent_70%)]" /> <div aria-hidden="true" className="absolute inset-x-0 bottom-0 h-2/3 bg-[linear-gradient(0deg,rgba(0,0,0,0.55),transparent)] sm:hidden" /> <span className="absolute left-8 top-8 rounded-[4px] bg-[#0b0b12] px-2 py-1.5 text-twilight-label leading-none text-foreground">{label}</span> <figure className="absolute bottom-8 left-8 right-8 max-w-[380px] text-foreground"> <blockquote className="text-twilight-lead"> <p className="-indent-2">“{quote}”</p> </blockquote> <figcaption className="mt-6"> <div className="text-twilight-lead">{name}</div> <div className="text-twilight-lead text-muted-foreground">{role}</div> </figcaption> </figure> </div> </section> ); }
Quality checks
Automated, in a real browser · 4d ago- Accessible: passedNo serious accessibility problems (axe-core): readable contrast, labelled buttons and images.
- Responsive: passedRenders at phone (390px), tablet (768px) and desktop width without sideways scrolling.
- Dark mode: passedStill readable when installed in your theme and switched to dark mode.
- Themeable: not passed1 hard-coded colour (bg-[#0b0b12]). These ignore the theme and break dark mode.
- Animates cleanly: doesn't applyDoesn't animate, so there's nothing to check.