retypeapp / retype

Retype is an ✨ ultra-high-performance✨ static site generator that builds a website based on simple text files.
https://retype.com
Other
1.09k stars 207 forks source link

Default to dark/light mode #421

Open shohamc1 opened 2 years ago

shohamc1 commented 2 years ago

Right now it does not seem to be possible to set the default theme of the website and the theme depends on the user's browser preferences.

It would be great to add a configuration parameter that allows preferring a dark or light theme, and also completely disabling a theme (only have light mode).

granicz commented 1 year ago

Just a thought: I use dark mode by default in my browser, and there is nothing more annoying than coming across a website that decides to override that user preference, and instead presenting a light mode rendering. It just absolutely kills the eyes when everything else is dark.

tjackman-ivre commented 1 year ago

+1 to allow the option to choose either light or dark mode. Depending on the usage, light looks more professional.

latenitefilms commented 1 year ago

I would also love to see this option - as dark mode actually better suits the visual style of our application.

I would like to have dark mode by default.

micartey commented 10 months ago

Any news on this?

tim-dreier commented 6 months ago

Any news?

latenitefilms commented 2 months ago

I came across this thread again because I was looking for this feature - would love to see it!

g1bbzy commented 4 days ago

I came across this problem too. wanted to set the default theme to dark. My solution. add some custom js

<script>
if (!window.localStorage.getItem('doc_theme')) {
    window.localStorage.setItem('doc_theme', 'dark');
    location.reload();
}
</script>