How do I change the color theme in godot docs website

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Michael Aganier

The godot docs has a dark theme by default. Any way to change the theme? I can’t find it.

enter image description here

Pretty sure you can only config that on the server

RazorSh4rk | 2020-04-20 22:13

Could you post a screenshot? There’s no dark theme to be found on Godot’s docs

Magso | 2020-04-20 22:14

Screenshot posted.

Michael Aganier | 2020-04-20 23:31

:bust_in_silhouette: Reply From: jgodfrey

As other’s have said, the Godot docs do not have a dark theme. I’d assume you must be running a theme library of sorts in your browser? For example, I use stylish for some sites (though, not for godotengine.org). However, I see that I can install a dark theme for the Godot docs via the stylish theme library. Are you sure you aren’t already using such a library? If you are, simply disable it for the godot docs site.

I just opened it in chrome and it is light by default… I’m using the opera browser. I’m confused because I don’t remember installing anything for that.

Michael Aganier | 2020-04-20 23:36

I’m using opera as well and it’s dark theme for me for the docs but only for the latest version. ie docs for 3.0 are the normal light theme

Wallace99 | 2020-04-21 04:09

It does have a dark theme. It’s enabled automatically based on the OS theming settings. There is unfortunately no way to override this behavior at the browser level, so you have to go into your OS theming settings and change the system theme.

Calinou | 2020-04-22 14:50

:bust_in_silhouette: Reply From: Calinou

The dark theme is used automatically based on the value of the prefers-color-scheme CSS media query. I’m the one who implemented it :slight_smile:

Unfortunately, browser vendors have yet to add easy theme overrides if your system is set to use a dark theme. This means you can’t change the theme without changing your system theme (and possibly restarting the Web browser).

On Firefox, you can use Dark Website Forcer to force using the dark theme on all supporting websites, but not the light theme.