this post was submitted on 20 Mar 2025
17 points (90.5% liked)

Web Development

3723 readers
79 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
all 19 comments
sorted by: hot top controversial new old
[–] Kissaki@programming.dev 11 points 17 hours ago* (last edited 17 hours ago)

I can understand the reasoning, but I would have weighed the significant benefit over the little "complexity"/content increase.

The color inversion is a significant effect. It doesn't change anything for those that use their own error pages, but significantly improves the situation for people who land on these pages and are bothered by light mode.

/edit: Their PR close comment was super short (non-telling), but they later commented with some reasonable reasoning that better describes their point of view and considerations.

[–] Kissaki@programming.dev 5 points 17 hours ago

Waaaait - I recently implemented a simple dark mode for a simple page and thought color-scheme declares intent/support not influence how it is being rendered. I thought I still had to define dark coloring.

I just checked and to my surprise the browser indeed serves different default/root coloring when dark color scheme is declared [as well]. :O This means I can simplify my CSS.

I must have been misled when skimming by "specifies compatibility" and "Component authors must use the prefers-color-scheme media feature to support the color schemes on the rest of the elements." missing the browser behavior change description.

[–] notfromhere@lemmy.one 3 points 21 hours ago* (last edited 21 hours ago) (1 children)

As if I needed another reason to avoid nginx.

Seems like a very simple, lightweight and elegant solution to keeping the engine up to modern standards. If they were serious about keeping complexity out they wouldn’t have such garbage site configuration.

[–] dan@upvote.au 11 points 21 hours ago (1 children)

Most server admins use custom 404 pages, so the default page isn't that common in production.

[–] notfromhere@lemmy.one 2 points 20 hours ago (1 children)

Good to know. My experience with nginx is definitely on the light end. I much prefer traefik I guess coming from k3s world.

[–] Ziglin@lemmy.world 1 points 7 hours ago

I only really knew of Apache as an alternative before.

[–] drkt_@lemmy.dbzer0.com 2 points 21 hours ago (1 children)

I agree with this decision. Don't make error pages more complicated than they are.

[–] dan@upvote.au 29 points 21 hours ago* (last edited 21 hours ago) (2 children)

It's literally just one line of HTML though:

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

Not complicated at all.

[–] drkt_@lemmy.dbzer0.com 0 points 20 hours ago

They're already more complicated than I want them to be so I'm passing on that

[–] 30p87@feddit.org 1 points 18 hours ago

Honestly, the only person using my sites is me, and I have dark reader anyway lol

[–] dan@upvote.au 2 points 1 hour ago

If you want to see this simple change in Nginx, they're running a poll here: https://github.com/nginx/nginx/discussions/584