hackage-server
hackage-server copied to clipboard
Support CSS feature `prefers-color-scheme`
https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme
The prefers-color-scheme CSS media feature is used to detect if the user has requested a light or dark color theme.
GitHub and Google support this feature.
Are there color palettes for light and dark themes that would be used for this?
@kandji-edwin , I haven't found any so I took the existing colors and guessed: https://github.com/haskell/hackage-server/pull/1008#issuecomment-1041057801
Improvement: https://github.com/haskell/hackage-server/pull/1281