this post was submitted on 20 Mar 2025
22 points (100.0% liked)

Web Development

3772 readers
10 users here now

Welcome to the web development community! This is a place to post, discuss, get help about, etc. anything related to web development

What is web development?

Web development is the process of creating websites or web applications

Rules/Guidelines

Related Communities

Wormhole

Some webdev blogsNot sure what to post in here? Want some web development related things to read?

Heres a couple blogs that have web development related content

CreditsIcon base by Delapouite under CC BY 3.0 with modifications to add a gradient

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 31 points 1 week ago* (last edited 1 week ago) (8 children)

It's literally just one line of HTML though:

<meta name="color-scheme" content="light dark">

Not complicated at all.

[–] [email protected] 3 points 1 week ago (6 children)

And some css, and accessibility issues. Dark mode isn't actually great for everyone.

[–] [email protected] 26 points 1 week ago* (last edited 1 week ago) (4 children)

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 by default. If the user doesn't want dark mode, they'd turn it off system-wide. The site can let the user opt in to dark mode just for that site, but the default is based on the system setting.

[–] [email protected] 1 points 1 week ago (3 children)

You didn't actually check, did you?

[–] [email protected] 14 points 1 week ago* (last edited 1 week ago)

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.

[–] [email protected] 9 points 1 week ago

Check what? They're right.

load more comments (1 replies)
load more comments (2 replies)