Storybook stories need images that are stable across every build. Dynamic URLs or external CDNs introduce variability that causes Chromatic to flag false diffs. This preset generates deterministic placeholder images for the most common Storybook component sizes — ready to commit as fixtures.
| Name | Dimensions | Description |
|---|---|---|
| hero | 1600x900 | Hero — 1600×900px (16:9), full-width component hero image |
| card | 960x720 | Card — 960×720px (4:3), card component media image |
| widget | 640x360 | Widget — 640×360px (16:9), dashboard and widget component image |
| state_default | 1280x720 | Default state — 1280×720px, baseline component state |
| state_hover | 1280x720 | Hover state — 1280×720px, secondary component state for interaction testing |
Chromatic's visual regression system compares screenshot pixels between builds. Any image that changes between builds — even slightly — is flagged as a diff. Committed placeholder images from this preset produce identical pixels in every Storybook build, so Chromatic only captures genuine component changes.
Commit placeholder images to your repository and import them in stories. Chromatic will capture a stable baseline that never changes unless you intentionally update the fixture.
Use separate placeholder images for default and hover states (with different labels or colors) so each story variant is visually distinguishable in the Storybook component library.
Ensure every component in your design system uses a placeholder at the documented image slot dimensions, making it easy to review sizing decisions across the library.
Ready to generate Storybook placeholder images?
Open the generator with this preset pre-loaded and download your pack in seconds.