I have created a little web app called https://notepad.js.org/ which is also a progressive web app (PWA). It’s a minimal notepad app where you can quickly jot down stuff that gets saved in the browser’s https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage. Now, the app also comes with a dark mode which can be toggled right from the header. Here’s what the app looked like in the dark mode.
That is because when the dark mode is toggled, we are not tinkering around with the default scrollbar color (i.e white).