Skip to content

馃寵 Native light/dark mode support for Apache error pages - #521

Open
anvme wants to merge 1 commit into
apache:trunkfrom
anvme:trunk
Open

馃寵 Native light/dark mode support for Apache error pages#521
anvme wants to merge 1 commit into
apache:trunkfrom
anvme:trunk

Conversation

@anvme

@anvme anvme commented Mar 10, 2025

Copy link
Copy Markdown

This adds native support for light and dark mode on Apache鈥檚 default error pages.

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

The tag is now included in the head, so modern browsers can automatically switch based on the user鈥檚 system preference.

No extra styling is needed鈥攋ust letting browsers/OS do their thing.

P.S. As example how it's working on nginx 404 Demo page here - https://nginx-light-dark-404.vercel.app/404.html Just switch OS between light/dark mode

Original PR nginx/nginx#567

The <meta name="color-scheme" content="light dark"> tag is now included in the <head>, so modern browsers can automatically switch based on the user鈥檚 system preference.
@anvme anvme changed the title Native light/dark mode support for Apache error pages 馃寵 Native light/dark mode support for Apache error pages Mar 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant