hackage-server
hackage-server copied to clipboard
support for `prefers-color-scheme`
Closes https://github.com/haskell/hackage-server/issues/1007 https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme
Some of the foreground and background colors are simply swapped. ~href colors should probably be brightened.~ Opinions appreciated. Preview: https://github.com/haskell/hackage-server/pull/1008#issuecomment-1138132085
Feedback appreciated
I think the default mode is unchanged.
Viewing in Firefox:

How do I populate the module documentation / function definitions? Edit: question here https://discourse.haskell.org/t/populate-module-documentation-in-local-instance-of-hackage-server/4630 i.e.
TwoCaptcha
TwoCaptcha.Captcha
Internal
TwoCaptcha.Internal.Client
Types
...
I should check the function definitions look okay.

Here is the Paginator

I like the colors and everything is clearly readable.
One thing I've not checked are any function definitions like:

because on my local instance of Hackage Server these are unpopulated:

Can you tell me how to populate these?
Looks like there is more to do
The Haddock exists now

It must use a different set of style sheets

For the most part people seem really happy about this!
However, a comment points out a few missed spots -- quickjump, and also the (new) revdeps feature. A pr to fix these up would be most welcome. https://discourse.haskell.org/t/new-hackage-server-features/2621/28
oh some of the banners too https://twitter.com/qnikst/status/1611392984700055552
Whoops, I'll prioritize an opt-in button, will try to get this done today
In my opinion, an opt-out is not so important, compared to just fixing up the maybe three cases discovered so far that need to be handled. Luckily as this is just a CSS change, deploying it will be safe and simple.
Okay, will do
please review https://github.com/haskell/hackage-server/pull/1162
I need to fix the Quick Jump separately, WIP: https://github.com/haskell/hackage-server/pull/1163