Skip to content

Dark theme #719

Description

@God-damnit-all

Description

There should be a button that switches the site between a light theme and a dark theme, with its default state set by something akin to window.matchMedia('(prefers-color-scheme: dark)')

Requirements

A white flash of light (a "flashbang") often occurs on pages that have toggleable themes before dark mode can be applied. There are ways to avoid this, described in the "Loading strategy" section of this reputable article.

Additional Notes

Let's be real, a site for coders should always have a dark theme.

Activity

  1. geekygirlsarah commented on Feb 11, 2024

    @geekygirlsarah
    Member

    Hmm... I'll consider this. There's some things to adjust with the code highlighting to make sure it works, I think.

    On a side note, Though as a coder that built a site for coders, I'll admit I bounce back and forth between them depending on mood, time of day, whether I'm presenting to people or not, etc. Sometimes dark mode is actually worse, I think.

    Also why'd you point out that the article is reputable?

  2. God-damnit-all commented on Feb 11, 2024

    @God-damnit-all
    Author

    Hmm... I'll consider this. There's some things to adjust with the code highlighting to make sure it works, I think.

    On a side note, Though as a coder that built a site for coders, I'll admit I bounce back and forth between them depending on mood, time of day, whether I'm presenting to people or not, etc. Sometimes dark mode is actually worse, I think.

    Also why'd you point out that the article is reputable?

    Have you seen the results on search engines lately?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions