# Design This file fixes the parts that are easy to get wrong. The language and tools are up to you, as long as the numbers here hold. ## Stub The stub fills a template from the query words, with a sku hashed from the query, and a price from a documented formula if that option is on. The fixture file is the authority for outputs. ## Screenshot tolerance 8 levels, 98% of pixels. The name and pitch on the page must also match the file. ## Inputs | Key | Label | Default | Notes | | --- | --- | --- | --- | | `title` | Store name | The Invented Goods Co. | Shown on the header and the listing. | | `query` | Default query | a kettle that whistles in thirds | Used on first load. | | `price` | Show a made-up price | on | A price from the stub, clearly marked as invented. | | `image` | Show a made-up picture | on | A generated still from the stub, not a scraped photo. | | `generator` | Generator | stub | stub is a deterministic local generator used in CI. template is a more fixed layout with slotted words. | ## Acceptance at the defaults The numbers, names and fixture paths already in this file are the authority. Where a later table or a shipped fixture file disagrees with prose, the table or the fixture wins. | Fixture | Role | | --- | --- | | `fixtures/invented-prompts.json` | A shipped fixture. The build may move it, but then `design.md` must name the new path. | | `spekkr.inputs.json` | A shipped fixture. The build may move it, but then `design.md` must name the new path. | Golden frames are compared at 1400 by 1000 CSS pixels unless a requirement names another size. Tolerance, unless a tighter figure is given above: 8 levels, 98% of pixels, with motion, cursors and clocks frozen as this file says. A build's goldens are of that build; they do not have to match a shipped reference preview pixel-for-pixel if the tool or the type is different, but they do have to match this file's layout, counts and copy. ## Screenshots These pictures are headless-Chrome captures of the working reference in `reference/preview.html`, at the default inputs. They are not drawings of a product that has not been built. The first picture is the one Spekkr shows on the spec's card. A build may ship its own goldens; those goldens are of that build and do not have to match these frames pixel-for-pixel. | File | What it shows | | --- | --- | | `shots/listing.png` | The Invented Goods Co. listing for a kettle that whistles in thirds. | ## How to verify 1. Run the checks at the default inputs, without a network. 2. Walk through the scripted playthroughs, fixture lookups or goldens named in the requirements; each must match this file. 3. Repeat once at the person's inputs when they differ from the defaults. 4. Fixture prompts produce a structured listing from a deterministic stub or template, matching a file. A golden product page is checked. A fetch hook fails if a paid API or a shop host is contacted. No checkout and no network are required in CI.