chromatic

Automate visual testing across browsers. Gather UI feedback. Versioned documentation.

  • Types
  • ESM
  • CJS
License
MIT
Install Size
7.2 MB(7.3 MB)
Vulns
0
Published

Get started

$npm install chromatic
$pnpm add chromatic
$yarn add chromatic
$bun add chromatic
$deno add npm:chromatic
$vlt install chromatic
$vp add chromatic
# Run locally
$npx chromatic
$pnpm exec chromatic
$npx chromatic
$bunx chromatic
$deno run npm:chromatic
$vlx chromatic
$vp exec chromatic

Readme

Chromatic CLI

Publishes your Storybook to Chromatic and kicks off tests if they're enabled.

Published on npm Tested with Chromatic

Documentation

👉 Read the Chromatic CLI docs

📝 View the Changelog

System requirements

The Chromatic CLI (and GitHub Action) is built to run in a variety of environments. We provide support for the following platforms:

  • Latest (LTS) versions of Ubuntu, Windows (Server), macOS
  • Node.js Current, Active or Maintenance (LTS) versions, according to their release schedule
  • Storybook 6.5+

Other platforms/versions may work, but are not officially supported. Certain features may not be available on certain platforms/versions, even if otherwise supported.

Contributing

Contributions of any kind are welcome! If you're a maintainer, refer to the following instructions to set up your development environment with Chromatic.

Compatibility & versioning

Compatibility is guaranteed between this package and Chromatic like so:

  • Production Chromatic ensures it’s compatible with what’s on npm
  • What's on the Git tag is equal to what's published on npm for that version
  • This package ensures it’s compatible with production Chromatic

To facilitate upgrading in the future, removing and adding features, this is the process:

  • Any new features will have to be on Chromatic production before they could be used in this package
  • We can add feature flags to be able to test new functionality
  • Chromatic production can not remove any features this package depends on until after the usage has been removed from this package in addition to a grace period to allow users to upgrade