Dark mode is actually worse for your eyes. There are plenty of studies that have shown bright text over dark background is less readable and produces eye strain.
Also reading bright text over black is painful for people with astigmatism.
Obviously people don't like going from dark to bright but that happens precisely because of dark mode being so popular.
At the very least, if you're going to follow the trend of having a dark mode you should provide a light mode (which this site does). Either have some sort of switch or use CSS to determine the OS setting.
I've been using dark mode in my code editors since 2011 or so and went back to light mode recently. I'm certain dark mode was a detriment to my eyes as I've been able to go back to my old glasses too.