Skip to content

Add dark mode support via color-scheme#477

Open
ners wants to merge 1 commit into
ndmitchell:masterfrom
ners:color-scheme
Open

Add dark mode support via color-scheme#477
ners wants to merge 1 commit into
ndmitchell:masterfrom
ners:color-scheme

Conversation

@ners
Copy link
Copy Markdown

@ners ners commented Jun 1, 2026

This is a CSS-only change that uses the light-dark CSS function to automatically style Hoogle to the user's preferred colour scheme.

The light theme colours are left alone, while the dark theme colours are chosen as complementary to the light theme, where it makes sense. For example, the header is left alone, as it is already dark on the light theme.


Caveat emptor: the moment the user selects a package, the page switches to the familiar white Hackage style, which does not support dark theme yet:

I believe this needs to be updated in the GHC, and might be a good ZuriHac project:

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