karma
karma copied to clipboard
Dark Mode
Please add an ability to have a dark background in a testing browser window, so that it will not hurt eyes.
I don't know what background you are looking at but try: http://karma-runner.github.io/5.2/dev/contributing.html
See the attachment. I suggest a simple fix like @media (prefers-color-scheme: dark) {}
to display dark body background when user wants to.
I fixed the issue by adding the following script to files
config:
window.top.document.body.style.backgroundColor = '#222222';
window.top.document.body.style.color = '#dddddd';
window.top.document.getElementById('banner').style.backgroundColor = '#226644';
Now my eyes feel relaxed (only flashes when starts up, but I can close my eyes for a moment).
@alexanderby We have the docs in dark mode so a PR to change the test page would be welcome.