It doesn’t need any CSS since the Nginx error pages use the browser’s default styling. The meta tag just tells the browser to use its default light or dark mode styling depending on the user’s preference.
A standard behaviour on all sites that properly implement dark mode is that it adheres to the system-wide dark mode setting. If the user doesn’t want dark mode, they’d turn it off system-wide.
I agree with this decision. Don’t make error pages more complicated than they are.
It’s literally just one line of HTML though:
<meta name="color-scheme" content="light dark">
Not complicated at all.
And some css, and accessibility issues. Dark mode isn’t actually great for everyone.
It doesn’t need any CSS since the Nginx error pages use the browser’s default styling. The meta tag just tells the browser to use its default light or dark mode styling depending on the user’s preference.
A standard behaviour on all sites that properly implement dark mode is that it adheres to the system-wide dark mode setting. If the user doesn’t want dark mode, they’d turn it off system-wide.
You didn’t actually check, did you?
Check what? They’re right.
Yes, I checked the pull request: https://github.com/nginx/nginx/pull/567/files and I’m also a web developer so I understand how it works.
🤡
Respecting the user’s choice (whether to use dark mode or not) helps accessibility rather than hindering it.
They’re already more complicated than I want them to be so I’m passing on that