chromatic-themes
Installation
SKILL.md
Chromatic Themes
Configure multi-theme visual testing using Chromatic's Modes API and @storybook/addon-themes.
This skill covers:
- Detecting the user's theme library and configuring the right decorator
- Defining theme modes in
.storybook/modes.ts - Applying modes at project, component, and story levels
Quick start
- Scan the project for existing theme config: look for
@storybook/addon-themesimports, amodes.tsfile, orchromatic.modes. - Ask the user which theme library they use (see step 3 below).
- Fetch the relevant docs from
reference/docs-map.md. - Generate configuration files and output the checklist from
reference/output-contract.md.