hackage-server icon indicating copy to clipboard operation
hackage-server copied to clipboard

Support CSS feature `prefers-color-scheme`

Open peterbecich opened this issue 3 years ago • 2 comments

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.

peterbecich avatar Feb 13 '22 21:02 peterbecich

Are there color palettes for light and dark themes that would be used for this?

kandji-edwin avatar Feb 16 '22 15:02 kandji-edwin

@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

peterbecich avatar Feb 22 '22 08:02 peterbecich

Improvement: https://github.com/haskell/hackage-server/pull/1281

peterbecich avatar Jan 20 '24 08:01 peterbecich