
Cards · Free
Hero card
A mobile hero with a living picture: a breathing halo, a pixel gradient that sharpens where you touch, or colour behind reeded glass.
Free on Gumroad: the download arrives in your inbox.
Details
- Category
- Cards
- Plan
- Free
- Code
- React + Tailwind, TypeScript · 385 lines
- Files
- HeroCard.tsx
- Needs
- React and Tailwind only
- Agents
- MCP server and shadcn registry
About
A mobile hero: a pill with your name and a menu, a headline, a living picture and a line of text. The picture is one of three arts, each one alive under your finger:
halo: a soft ring of colour (a light blue core, a dark line, orange, pink) that breathes. It leans
toward your finger on a spring, and a press sends a squishy ripple out through it.
pixel: a pixel gradient across the top, with a glass pill floating on it. A warm spot follows you on a
spring and the pixels around it get finer, like a lens sharpening the picture.
reeded: colour clouds drifting behind reeded glass. Every rib bends its own slice of them, like a glass
rod. Point and the colour gathers where you are, smeared across the ribs. It can carry white text.
Press menu and the pill swells into a panel whose links drop in with a bounce. The headline and the text come in word by word, out of a slight blur.
React + Tailwind, no other libraries. A canvas or CSS, drawn only while something moves and only on screen.
Install
With the shadcn CLI:
npx shadcn@latest add https://www.stackd.codes/r/hero-card.jsonOr let your agent add it through the StackD MCP server:
claude mcp add --transport http stackd https://www.stackd.codes/mcpPrompt for your agent
Paste it into Claude Code, Cursor, Codex or VS Code once the MCP server is connected.
Add the StackD Hero card component to this project. Use the StackD MCP server: call get_component with { "name": "hero-card" }, write the files at the paths it gives and install any npm packages it lists. Then use it where it fits, following its README for the props, and keep its own styles.Use
- Copy
HeroCard.tsxinto your project (for examplecomponents/). - Use it:
import { HeroCard } from './components/HeroCard'
<HeroCard
art="halo"
brand="ACME"
headline="Small things you want to touch."
footnote="We build interfaces that feel alive."
links={[{ label: 'Work', href: '/work' }, { label: 'About', href: '/about' }, { label: 'Contact', href: '/contact' }]}
/>
It's sized for a phone (360 × 600 by default). Set width and height for any other size: the art fills the room it gets, and in the pixel layout the type follows the width.
In Next.js the file already starts with 'use client'. In other React setups that line does nothing.
Options
| Prop | Default | What it does |
|---|---|---|
art | 'pixel' | 'halo', 'pixel' or 'reeded' |
brand | 'STACKD' | The name in the pill |
headline | The big line | |
body | A grey paragraph under the headline (pixel) or under the art | |
footnote | The small text at the bottom | |
links | The menu: { label, href?, onClick? } | |
palette | per art | The art's colours. Halo: outer, middle, line, inner, core |
caption | Reeded only: { title, text? } in white on the glass | |
pixel | 18 | Pixel only: pixel size in px |
theme | 'light' | 'light' or 'dark' |
width / height | 360 / 600 | Size in px |
glow | Hold the pointer at a point (0 to 1 across and down the art), for covers and mock-ups | |
defaultOpen | false | Start with the menu open |
className | Extra classes |
Accessibility
The menu is a real nav with a button that says whether it's open, and real links. The art is decoration (hidden from screen readers). With reduced motion on, the art holds still, nothing ripples or bounces and the text is simply there.
Colours from StackD
White #FFFFFF · Ink #141310 · Wine #901919 · Olive #6C8544 · Ochre #BE9344 · Lilac #C9B8FF
Licence
You can use it in personal and commercial projects. Don't resell or share the component on its own.


