# Product grid

Product grid: a free component, built on your design tokens, to use when someone searches a shop ("warm wool coats under £200 in size M") and will open one product. Four to eight products in a grid that goes one to four across by the space it has: a photo with a stock status, the name, the price with the old price struck out, colour swatches and the sizes in stock.

Prompt: Add the OpenDesigner component product-grid to this project: https://opendesigner.dev/library/product-grid.html. Keep its markup and states; map its --ds-* variables to my tokens.

States: in stock, few left, sold out, on sale, size sold out, hover, focus, one to four across.

Accessibility: A list of products; each card is one button named "View, <product>". Stock is words as well as colour, the old price is read as "was £85", a sold-out size is read as "L, sold out", and colours are named.

File: https://opendesigner.dev/library/product-grid.html

Catalog entry (parts, data limits, states, tokens): https://opendesigner.dev/library/product-grid.json

Download: `curl -fsSLo product-grid.html https://opendesigner.dev/library/product-grid.html`
