Dark Mode for Cypress Test Runner
JSON →cypress-dark is a utility package for Cypress that provides customizable dark themes for the Cypress Test Runner UI. It is currently stable at version `1.8.3`, with the last significant update occurring in late 2021. The package's release cadence appears to be infrequent, primarily addressing bug fixes or compatibility issues with Cypress rather than consistently introducing new features. Its key differentiators include offering several pre-defined themes, such as 'dark' and 'halloween', and a unique feature to programmatically force the application under test into dark mode by stubbing `window.matchMedia`. This functionality is highly useful for thoroughly testing applications that implement `prefers-color-scheme` logic. It integrates directly into the `cypress/support/index.js` file for straightforward activation within your Cypress project setup.
Traffic · last 30 days ↑0% vs prev 7d
top countries 🇸🇬 Singapore · 🇺🇸 United States · 🇨🇦 Canada · 🇩🇪 Germany · 🇫🇷 France