r/webdev • u/sunsetRz • 23d ago
Web devs, Please stop making dark mode the default website theme; it causes eye strain.
Why the website needs to be on dark mode while my system is on light mode,
Except some few websites and most code editors, majority of the websites and apps have no idea how it ruins an eye.
The coloring for dark them to match the text color with the background color needs a lot of research from you Dev, so before implementing it please do extensive research and testing, let alone making it default theme to ruin your site visitors.
Okay, let me calm down.
What do you think about this?
0
Upvotes
32
u/KamikazeSexPilot 23d ago
Why would anyone listen to the opinion of someone who uses light theme
14
u/An1nterestingName 23d ago
No
Also in an ideal world the site should read from your browser's settings to decide whether to use light or dark as default.
10
u/Escanorr_ 23d ago
Well, for me - the light mode causes the eye strain, and unfortunately there is much more only light mode sites around
2
u/OUTLAWED-PRESIDENT 23d ago
I always follow the OS's theme and also have the option to make either theme options permanent. Works flawlessly for mobile, linux and windows
2
u/dane_websites 23d ago
Most professional applications (IDEs, photo and video editors, etc) use a dark theme by default, so if the website is a web app for professional to do serious work, then it would make sense. But hardly any are that of course.
I agree, in most cases sites should only switch into a dark theme if the OS is in dark mode, or the user specifically chooses it on the site settings.
We could make an exception for brands that really need a dark theme for their aesthetic, but then they need to test it a ton with real users before launch.
1
u/Key-Temporary-8759 23d ago
Why to argue about light or dark mode? Many websites have a toggle for changing the theme. Switch whenever you want. And for the devs, just provide a toggle.
4
u/Jon-Robb 23d ago
Exact opposite opinion
2
u/yikes_42069 23d ago
"dark mode causes eye strain" isn't exactly true. It's fine in a dimly lit setting. Light mode in the dark would cause eye strain. It's about managing your lighting conditions. If your office is bright, use light mode. Dark, use dark mode
1
u/Quickfreetools 23d ago
A three-way setting helps here: System / Light / Dark, rather than just a light-dark toggle. “System” can follow prefers-color-scheme, including changes while the page is open, while an explicit choice stays saved. Also worth checking form fields, dropdowns and error messages in both themes; those often get missed even when the main page looks fine.
1
u/TheRNGuy 23d ago
Default dark or light should be selected automatically, depends on your browser preference; there should be an option to save it in local storage.
1
u/Standard_Scarcity_74 23d ago
Dark mode has a very specific target demographic. I do tend to choose which I make default based on what the site demands though. Of course I wouldn't make an educational or storefront site with dark mode as default, but the kind I would be using in the dark more often, I default to dark mode.
1
u/Discordbothost 23d ago
for the devs reading this, following the os setting is like three lines, which is why it's a bit lazy when sites don't. put the light colors as your defaults and override them in
plus color-scheme: light dark on :root (or the meta tag) so the browser's own scrollbars and form inputs match. then a toggle that saves to localStorage for people who want to override it. hardcoding dark as the only default is mostly a "looks cooler in the dribbble shot" decision
1
u/ganeshjoshidev 23d ago
One piece people forget even when they follow prefers-color-scheme: the `color-scheme` property. Without it the browser doesn't know your page supports dark, so a dark site can still get light scrollbars and bright default form controls.
`:root { color-scheme: light dark; }` plus `<meta name="color-scheme" content="light dark">` in the head, before your CSS. MDN says the meta tag helps "prevent unwanted screen flashes during the page load", which is the white flash you get on dark sites.
0
u/Senior-Dirt-6165 23d ago
Fair, but a site going dark while your system is light is a prefers-color-scheme bug, not dark mode being wrong. Pure #fff on pure #000 is what actually burns, and most devs never bother softening those two values.
0
u/HollowCr0wn 23d ago
Brother, light mode on the PC of the guy next to me causes me easy strain. Ban passive light mode.
0
u/0cean-blue 23d ago
Just respect user's system preference, dark mode or light mode, accessiblity should always be considered.
-2
u/xanhast 23d ago
ha, you dont think people that stare at screens all day don't know about eye stain, and you use light themes, get outta here