You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I started using the CLI command via Github Actions, like it's described in the official docs:
- run: npm install --save-dev @percy/cli
- run: npx percy snapshot _site/ # or any directory such as public/
env:
PERCY_TOKEN: $
And everything works as expected, nevertheless in my project I'm currently using tailwind for styling with the feature of Dark mode. Depending on the prefers-color-scheme the app changes the styles in order to follow dark:
I was navigating the documentation and Github Issues, but couldn't find any relevant option in order to set this option into the browser before the snapshots are generated.
The text was updated successfully, but these errors were encountered:
EmaSuriano
changed the title
Configure prefers-color-scheme in order to test Dark mode.
Set browser prefers-color-scheme to test apps in dark mode
Nov 21, 2023
Summary
I started using the CLI command via Github Actions, like it's described in the official docs:
And everything works as expected, nevertheless in my project I'm currently using
tailwind
for styling with the feature of Dark mode. Depending on theprefers-color-scheme
the app changes the styles in order to followdark:
I was navigating the documentation and Github Issues, but couldn't find any relevant option in order to set this option into the browser before the snapshots are generated.
The text was updated successfully, but these errors were encountered: