Storefront → Templates → Migration validation
Pixel-perfect (fix & section)
Diff one section between prod and cand — screenshots, pixelmatch heatmap, computed styles — into an LLM-ready bundle.
When a single section renders differently, parity fix and parity section capture everything an agent needs to make it pixel-perfect.
parity fix — the shortcut
fix runs section with all signals on and produces an LLM-ready Markdown bundle:
parity fix --prod https://old.com --cand https://new.dev --selector "[data-section='Hero']"Writes to parity-output/:
section-<hash>-prod.png/-cand.png— cropped screenshots of the section on each sidesection-<hash>-heatmap.png— pixelmatch overlay of the differing pixelssection-<hash>-bundle.json— HTML diff + computed-style diff + asset listssection-<hash>-prompt.md— a ready-to-paste prompt- an LLM paragraph diagnosing the difference (with an API key;
--no-llmskips it)
parity section — pick your facets
section is the lower-level command — capture exactly the facets you want:
parity section --prod ... --cand ... --selector "footer" \
--screenshot --computed-styles --heatmap --css-source --prompt| Flag | What it adds |
|---|---|
--screenshot | Per-side cropped screenshot |
--computed-styles | Computed-style diff (curated ~35 properties) |
--heatmap | pixelmatch bounding-box + hotspots of the pixel diff |
--css-source | Resolves which CSS rules produce the styles (via CDP) |
--output-html | HTML diff of the section |
--prompt / --llm-summary | Emits bundle.json + prompt.md / an LLM paragraph |
Inspecting CSS rules — parity css-trace
To see which CSS rules affect an element (single URL) or how computed styles differ between the two sides:
# Every matched rule for a selector on one URL
parity css-trace --url https://loja.com --selector ".price"
# Computed-style diff prod vs cand
parity css-trace --prod ... --cand ... --selector ".price" --jsonSee also
parity run --only visual— the whole-page visual module- Inspect commands —
css-trace,html,console