A product card with colour swatches: tapping a swatch recolours the product through a hue shift on the image, crossfades the colour name, updates the price if the variant differs, and slides a ring onto the chosen dot. The 'Add' button pulses once when the variant changes.
Clicking a swatch sets `--sw` on the card (the SVG's fill transitions 0.35 s), moves `.ring` to the swatch's `offsetLeft` (0.3 s `cubic-bezier(.2,.8,.2,1)`), swaps the variant name through a 0.2 s opacity dip and writes the price with a tabular font so it does not jitter. The Add button gets a one-shot `pulse` class (scale 1 → 1.04 → 1).
From prompt to a block in your page.
The preview is the shipped element inside a neutral demo page. Hover, click, focus: the one interaction it is about is live.
Token sets re-tint it live. The prompt carries the one you chose.
A paste-in snippet, or a component for Next.js, React, Vue, Astro, WordPress, Shopify or Webflow.
It quotes the markup, styles and script verbatim with the tokens and the rules that keep it self-contained.
It inherits your page's font and width; the tokens live on :root; several instances share one script.