Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatic light/dark mode website stylesheet #9

Open
nekohayo opened this issue Oct 22, 2024 · 1 comment
Open

Automatic light/dark mode website stylesheet #9

nekohayo opened this issue Oct 22, 2024 · 1 comment

Comments

@nekohayo
Copy link
Member

I don't know how easily done this is within GitHub Pages, and this is purely a wishlist idea, but ideally... autodetect the browser/operating system's dark mode, using this simple CSS rule for example:

@media (prefers-color-scheme: dark) {
   blah blah
}

See this technical reference article on MDN for more details.

As an example (besides MDN's own website), Foreign Affairs does a fantastic job at providing a beautiful automatic dark variant of their website to their readers when the operating system requests it.

@Neui
Copy link
Contributor

Neui commented Oct 22, 2024

We are using the default Minima 2.5 whose readme also describes how to override parts of the page and CSS (which I have already used here).

We could also create our own custom style based on (default) libadwaita/gtk style maybe, or try to use the gnome-made one (but I'm not sure if it has dark mode support).

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

No branches or pull requests

2 participants