This chrome extension allows you to quickly enable and disable forced colors emulation
It can be enabled in the dev tools but I'm lazy :)
When clicking on the extension icon, it will cycle between 3 modes:
- Forced color with dark theme
- Forced color with light theme
- Nothing
extension_preview.mov
It's not in the chrome store for now, you can load it with the developer mode
There is a playwright test with snapshots
npx playwright test
Snapshots are generated for darwin and linux, if you are on windows, you can use the following command to generate them:
npx playwright test --update-snapshots