Automatically adjust documentation theme to match user's preference #6159

Closed
opened 2025-12-29 19:37:26 +01:00 by adam · 2 comments
Owner

Originally created by @jeremystretch on GitHub (Mar 1, 2022).

Originally assigned to: @jasonyates on GitHub.

Change Type

Addition

Area

Other

Proposed Changes

Per the mkdocs-material documentation, it should be possible to automatically toggle light/dark mode as requested by the user's browser.

Originally created by @jeremystretch on GitHub (Mar 1, 2022). Originally assigned to: @jasonyates on GitHub. ### Change Type Addition ### Area Other ### Proposed Changes Per the [mkdocs-material documentation](https://squidfunk.github.io/mkdocs-material/setup/changing-the-colors/#color-palette-toggle), it should be possible to automatically toggle light/dark mode as requested by the user's browser.
adam added the status: acceptedtype: documentation labels 2025-12-29 19:37:26 +01:00
adam closed this issue 2025-12-29 19:37:26 +01:00
Author
Owner

@jasonyates commented on GitHub (Mar 2, 2022):

Submitted a PR for this.

Tested it across Safari, Firefox & Chrome on macOS 12.2 successfully. Documentation theme followed my system preference for light/dark mode.

@jasonyates commented on GitHub (Mar 2, 2022): Submitted a PR for this. Tested it across Safari, Firefox & Chrome on macOS 12.2 successfully. Documentation theme followed my system preference for light/dark mode.
Author
Owner

@jeremystretch commented on GitHub (Mar 2, 2022):

Thanks @jasonyates!

@jeremystretch commented on GitHub (Mar 2, 2022): Thanks @jasonyates!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#6159