gohugoioTheme icon indicating copy to clipboard operation
gohugoioTheme copied to clipboard

Idea: Dark theme

Open shiftgeist opened this issue 6 years ago • 2 comments

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)

shiftgeist avatar May 04 '19 23:05 shiftgeist

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.

vitaly-zdanevich avatar Oct 12 '20 12:10 vitaly-zdanevich

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

AndydeCleyre avatar Jan 12 '24 18:01 AndydeCleyre