19.9%
Identicon
Ines Calder
Markup where the component goes, CSS in your stylesheet, script before </body>. In Vue, Svelte or Angular, call initCardIdenticon(el) on the mounted element instead.
Paste into Claude, ChatGPT or Cursor after filling in {{USER_STACK}}, {{USER_STYLING}} and {{USER_CONSTRAINTS}}. Neutral keeps the greys you see here; Match my project asks the model to map them onto your own colour tokens.
Install with shadcn
Needs a free account token. Get a token
npx shadcn@latest add @movin/card-identiconAbout this component
A member card whose avatar is a generated mark: a quilt of rounded squares, quarter-circles, triangles and half-moons, mirrored both ways, in two tones of one hue. Shuffle springs in a new mark tile by tile, and Follow takes its colour.
Triggers
- Click
- State change
- Card
- Delay stagger
- Spring
- Icon swap
Techniques
- SVG
- Keyframes
- Stagger
- @property
- CSS transition
- State machine
Difficulty
Intermediate
Accessibility
Keyboard and screen readers
The emblem is decorative (aria-hidden) and the card is named by the person's name. Shuffle is an icon button named "Shuffle avatar"; Follow is a native button with aria-pressed and a visible Following label. Both have a :focus-visible ring in the hue.
Reduced motion
The new mark replaces the old one at once and colours change without transitions.
Use it in anything you build, commercial and client work included. Licence
More cards
See allWorkspace
No command matches