Ecommerce Hero 22 block design & features
EcommerceHero22 is a colourway hero built with shadcn/ui and Motion. A tinted panel holds a heading, description, a row of colour swatches, a buy button with the price and a size guide button, with a full-height photo of the hoodie on the right.
Picking a swatch slides the matching model photo into place and fades the panel to a matching pastel tint, and the selected colour name updates next to the product name.
It suits hoodies, knitwear and other clothing sold in a few colours. The panel tints are fixed colours with their text colour set explicitly, so they look the same in light and dark mode, and with reduced motion the photo swaps without sliding.
