gohugoio / gohugoioTheme

A [wip] theme for the gohugo.io home page, docs and theme sites.
MIT License
107 stars 63 forks source link

Idea: Dark theme #130

Open shiftgeist opened 5 years ago

shiftgeist commented 5 years ago

I like dark themes. How about we make one for the hugo docs?

I would love to help implementing this.

I might have the time for feature. I would like to agree on a concept, how to implement this. There are a lot of ways to do this and idk what fits best for the hugoDocs project. (https://github.com/gohugoio/hugoDocs/issues/805)

vitaly-zdanevich commented 4 years ago

Maybe we can use https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme?

I am also can help to write this 20 lines of CSS.

AndydeCleyre commented 10 months ago

The theme currently used has places where it specifies the background color, but leaves the foreground color to the user's browser preference for unstyled sites/elements.

So if a user has set their browser to use light text on dark background when a site is unstyled, this theme will display light text on light background, which is not very readable.

image