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

Dark Mode support #943

Open
cara-tm opened this issue Dec 22, 2021 · 0 comments
Open

Dark Mode support #943

cara-tm opened this issue Dec 22, 2021 · 0 comments
Assignees
Milestone

Comments

@cara-tm
Copy link

cara-tm commented Dec 22, 2021

Is your feature request related to a problem?

Nope!

What is the feature?

Maybe it's the time to add a "Dark Mode" support into the Default theme?
Simply because it's a user choice, after all.

Default theme with Dark Mode support preview

Here is a simple way with few lines of CSS:

@media (prefers-color-scheme:dark) {
    html{background-color: #000}
    body{filter: invert(100%)}
    header *,header a,footer *,footer a{filter: invert(0%)}
    img{filter: invert(100%)}
}

Note: changing heading links color, gives a little darker white on "Dark Mode" but keeps a good contrast ratio on "Light Mode":

h1 a,
h2 a,
h3 a,
h4 a,
h5 a,
h6 a {
color: #333;
}
@philwareham philwareham self-assigned this Feb 23, 2024
@philwareham philwareham added this to the 5.0.0 milestone Feb 23, 2024
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