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
{{ message }}
Repository navigation
Allow setting browser to dark theme in configuration #8947
Every time I run browser tests, I manually click Toggle to dark mode when browser pops up.
It would be nice if I could set in configuration to always set it to dark theme for me.
Suggested solution
There could be configuration setting browser.theme that allows setting preferred theme.
Possible values could be 'light' or 'dark'.
Default value could remain 'light'.
Activity
selimhex commentedon Nov 19, 2025
oh yes please!
semihher commentedon Dec 10, 2025
please please please
paralin commentedon Dec 22, 2025
+1 on this one! - and respect the os dark mode setting - prefers-color-scheme
ItsJustRuby commentedon Dec 27, 2025
UI mode currently uses
vueuse/core'suseDark.The docs there say it should already use the users' system preferences, so it would be a good starting point to investigate why that is not happening.
There is also
usePreferredDark, although from skimming the docs, it is unclear how that differs in intended behavior or usage 🙃.macarie commentedon Dec 29, 2025
The UI respects
prefers-color-scheme, but Playwright sets it by default to"light"to be consistent across different systems.If you want to let the OS control this, you have to set
colorSchemetonull:Alternatively set it to
"dark"to enable dark mode automatically.I'm not sure how WebdriverIO handles this.
paralin commentedon Dec 31, 2025
I did it with this -
and