Cypress Runner Themes is a utility package providing alternative visual themes for the Cypress Test Runner, supporting versions 10 and higher. Its current stable version is v1.0.4, with releases occurring periodically to maintain compatibility with new Cypress major versions or address bug fixes. The package offers 'dark', 'light', and 'colorblind' modes, consolidating functionality often found in separate packages like `cypress-dark` or `cypress-light-theme`. A key differentiator is its specific colorblind mode designed for Deutan and Protan types, which changes passing tests to yellow and failing to red. Users enable themes by setting an environment variable in `cypress.config.js` and importing the package for its side effects, though themes currently only apply after the first test run.
npm install cypress-runner-themesVerified import paths — ran on the pinned version, not inferred.
Installs the package, configures a dark theme via `cypress.config.js`, and imports the theme plugin in the `support/e2e.js` file, demonstrating how to apply visual themes to the Cypress Test Runner.
Monitor the package's GitHub repository for updates and compatibility fixes after upgrading Cypress. Report issues if a theme breaks following a Cypress update.
After launching the Cypress Test Runner, start or run any test to see the theme applied. It will not appear immediately upon opening the runner.
Be aware that the current `env.theme` configuration method for the `colorblind` theme might evolve in future major versions. Consult the package's changelog for migration guides when updating.
Ensure `env.theme` is correctly set in `cypress.config.js` (e.g., `theme: 'dark'`) and `import 'cypress-runner-themes';` is present in your primary Cypress support file (e.g., `cypress/support/e2e.js`). Then, run at least one test in the Cypress Test Runner.
No dependency data recorded yet.